isRoadblock property

bool get isRoadblock

Whether this traffic event represents a roadblock.

Roadblocks are events that block or heavily restrict traffic on a road segment or geographic area. This returns true for both server-provided roadblocks and user-defined roadblocks.

Returns

  • bool: true when the event is a roadblock, otherwise false.

Implementation

bool get isRoadblock {
  final OperationResult resultString = objectMethod(
    pointerId,
    'TrafficEvent',
    'isRoadblock',
  );

  return resultString['result'];
}