nextTurnDetails property

TurnDetails? get nextTurnDetails

Full details for the immediate next turn.

Provides comprehensive information about the upcoming turn, including geometry, turn event type, and roundabout exit number. Use this for customized UI rendering instead of getNextTurnImage for more control. Always check hasNextTurnInfo before accessing. Returns null if not available.

Returns

  • (TurnDetails?) Details for the next turn, or null if not available.

See also:

Implementation

TurnDetails? get nextTurnDetails {
  final OperationResult resultString = objectMethod(
    pointerId,
    'NavigationInstruction',
    'getNextTurnDetails',
  );

  if (resultString['result'] == -1) {
    return null;
  }

  return TurnDetails.init(resultString['result']);
}