endTime property
Event end time in UTC.
Returns
- DateTime?: UTC end time when available, otherwise
null.
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);
}