toEVRoute method
Convert to a EVRoute from this one.
Returns
- EVRoute object if the route is an electric vehicle route, null otherwise
Throws
- An exception if it fails.
Implementation
EVRoute? toEVRoute() {
final OperationResult resultString = objectMethod(
_pointerId,
'Route',
'toEVRoute',
);
if (resultString['result'] == 0) {
return null;
}
return EVRoute.init(resultString['result'], 0);
}