timeDistanceToNextTurn property
TimeDistance
get
timeDistanceToNextTurn
Distance and time to the next turn from this instruction.
Returns
- TimeDistance: distance (meters) and time (seconds) until the next turn.
Implementation
TimeDistance get timeDistanceToNextTurn {
final OperationResult resultString = objectMethod(
pointerId,
'RouteInstructionBase',
'getTimeDistanceToNextTurn',
);
return TimeDistance.fromJson(resultString['result']);
}