isFerry property

bool get isFerry

Check if the route instruction is a ferry.

Returns

  • True if a ferry is involved, false otherwise

Throws

  • An exception if it fails.

Implementation

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

  return resultString['result'];
}