isRoadblock property
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:
truewhen the event is a roadblock, otherwisefalse.
Implementation
bool get isRoadblock {
final OperationResult resultString = objectMethod(
pointerId,
'TrafficEvent',
'isRoadblock',
);
return resultString['result'];
}