nextTurnDetails property

TurnDetails get nextTurnDetails

Get the full details for the next turn.

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

Returns

  • The full details for the next turn

Throws

  • An exception if it fails.

Implementation

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

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