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',
  );

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

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