getRoute method
- int index
Get route specified by index.
Parameters
- IN index The index of the route in the collection
The main route in the collection
Returns
- Route object if index is valid, null otherwise
Throws
- An exception if it fails.
Implementation
Route? getRoute(final int index) {
final OperationResult resultString = objectMethod(
pointerId,
'MapViewRouteCollection',
'getRoute',
args: index,
);
final dynamic result = resultString['result'];
if (result['empty'] == true) {
return null;
}
return Route.init(result['oid'], mapId);
}