nextNextTurnDetails property

TurnDetails? get nextNextTurnDetails

Get the full details for the next-next turn.

This may be used instead of _getNextNextTurnIcon_ in order to customize turn display in UI.

Returns

  • The full details for the next-next turn

Throws

  • An exception if it fails.

Implementation

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

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

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