endTime property

DateTime? get endTime

Gets end time ( UTC )

Returns

  • The end time if it is available, otherwise null.

Throws

  • An exception if it fails.

Implementation

DateTime? get endTime {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'TrafficEvent',
    'getEndTime',
  );

  final int milliseconds = resultString['result'];
  if (milliseconds == 0) {
    return null;
  }
  return DateTime.fromMillisecondsSinceEpoch(milliseconds, isUtc: true);
}