startTime property

DateTime? get startTime

Gets start time ( UTC )

Returns

  • The start time if it exists, otherwise null.

Throws

  • An exception if it fails.

Implementation

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

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