instructionIndex property

int get instructionIndex

Get the index of the current route instruction on the current route segment.

Returns

  • The index of the next route instruction on the current route segment

Implementation

int get instructionIndex {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'NavigationInstruction',
    'getInstructionIndex',
  );

  return resultString['result'];
}