isTollRoad property

bool get isTollRoad

Check if the route instruction is a toll road.

Returns

  • True if a toll road is involved, false otherwise

Throws

  • An exception if it fails.

Implementation

bool get isTollRoad {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'RouteInstructionBase',
    'isTollRoad',
  );

  return resultString['result'];
}