getVisibleRouteInterval method
Get the clipped part of the given route as a record of (startDistance, endDistance)
Parameters
- IN route The target route.
- IN screenRect Clipping rectangle in screen coordinates. If no clip rectangle is given, the whole screen is used
Returns
- The clipped part of the route as a record of (startDistance, endDistance)
Throws
- An exception if it fails.
Implementation
(int, int) getVisibleRouteInterval(
final Route route, {
final RectType<int>? screenRect,
}) {
final OperationResult resultString = objectMethod(
_pointerId,
'MapView',
'getVisibleRouteInterval',
args: <String, dynamic>{
'route': route.pointerId,
if (screenRect != null) 'clipRect': screenRect,
},
);
return (
resultString['result']['first'],
resultString['result']['second'],
);
}