instructionIndex property
int
get
instructionIndex
Index of the current route instruction on the current RouteSegment.
Returns the zero-based index of the current instruction within the active route segment. Useful for tracking progress through a segment.
Returns
- (int) Index of the current route instruction on the segment.
See also:
- segmentIndex - Index of the current route segment.
Implementation
int get instructionIndex {
final OperationResult resultString = objectMethod(
pointerId,
'NavigationInstruction',
'getInstructionIndex',
);
return resultString['result'];
}