nextTurnInstruction property

String get nextTurnInstruction

Textual description for the immediate next turn.

Returns a human-readable instruction string (e.g., "Turn right onto Highway 101") for the upcoming maneuver. Suitable for displaying in navigation UI. Always check hasNextTurnInfo before relying on this value.

Note: For text-to-speech output, use the onTextToSpeechInstruction callback from NavigationService instead.

Returns

  • (String) Instruction text for the next turn.

See also:

Implementation

String get nextTurnInstruction {
  final OperationResult resultString = objectMethod(
    pointerId,
    'NavigationInstruction',
    'getNextTurnInstruction',
  );

  return _capitalizeFirstCharLatin(resultString['result']);
}