segmentIndex property
Current instruction segment index.
Returns the zero-based index of the current RouteSegment within the active route. Increments as the user progresses through waypoints and route segments.
Returns
- (
int) Current segment index (0-based).
See also:
- instructionIndex - Current instruction index within the route.
Implementation
int get segmentIndex {
final OperationResult resultString = objectMethod(
pointerId,
'NavigationInstruction',
'getSegmentIndex',
);
return resultString['result'];
}