nextTurnInstruction property
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:
- nextNextTurnInstruction - Instruction for the turn after next.
- hasNextTurnInfo - Check for immediate next turn info.
Implementation
String get nextTurnInstruction {
final OperationResult resultString = objectMethod(
pointerId,
'NavigationInstruction',
'getNextTurnInstruction',
);
return _capitalizeFirstCharLatin(resultString['result']);
}