getPersistentRoadblock static method

TrafficEvent? getPersistentRoadblock(
  1. String id
)

Get an user persistent roadblock identified by id

Parameters

  • IN id The roadblock id as it was provided in addPersistentRoadblock function

Returns

  • The roadblock if found, null otherwise

Throws

  • An exception if it fails

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