isCommon property

bool get isCommon
inherited

Check if this segment is of common type.

A common type route segment has the same travel mode as the parent route.

E.g. a walk segment in a public transport route has isCommon == false.

Returns

  • True if the segment is common type, false otherwise.

Throws

  • An exception if it fails.

Implementation

bool get isCommon {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'RouteSegmentBase',
    'isCommon',
  );

  return resultString['result'];
}