nextNextTurnDetails property

TurnDetails? get nextNextTurnDetails

Full details for the turn after the next one.

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

Returns

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

See also:

Implementation

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

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

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