isCommon property

bool get isCommon

Whether this segment is of the same travel mode as the parent route.

A segment is not common when its travel mode differs from the route (for example a walk segment inside a public transport route).

Returns

  • bool: true when the segment travel mode matches the route's travel mode; false otherwise.

Implementation

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

  return resultString['result'];
}