nextStreetName property
Street name for the road after the next turn.
Returns the name of the street following the immediate next maneuver. May return an empty string if the street has no assigned name or if information is unavailable. Always check hasNextTurnInfo before relying on this value.
Returns
- (String) Street name, or empty string if not available.
See also:
- currentStreetName - Name of the current street.
- nextNextStreetName - Street name two maneuvers ahead.
Implementation
String get nextStreetName {
final OperationResult resultString = objectMethod(
pointerId,
'NavigationInstruction',
'getNextStreetName',
);
return resultString['result'];
}