getPersistentRoadblock static method

TrafficEvent? getPersistentRoadblock(
  1. String id
)

Retrieves a persistent roadblock by its identifier.

Parameters

  • id: The identifier provided when the roadblock was created.

Returns

  • The corresponding TrafficEvent if found, or null if no matching roadblock exists.

Also see:

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']);
}