getPersistentRoadblock static method
Retrieves a persistent roadblock by its identifier.
Parameters
id: The identifier provided when the roadblock was created.
Returns
- The corresponding TrafficEvent if found, or
nullif no matching roadblock exists.
Also see:
- TrafficEvent.description - Retrieve the id of a user-defined roadblock.
Implementation
static TrafficEvent? getPersistentRoadblock(String id) {
final OperationResult resultString = staticMethod(
'TrafficService',
'getPersistentRoadblock',
args: id,
);
if (resultString['result'] == -1) {
return null;
}
return TrafficEvent.init(resultString['result']);
}