delay property

int get delay

Gets the estimated delay in seconds caused by the traffic event.

Returns

  • The delay in seconds. Returns -1 if the delay is unknown.

Throws

  • An exception if it fails.

Implementation

int get delay {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'TrafficEvent',
    'getDelay',
  );

  return resultString['result'];
}