arrivalTime property
DateTime?
get
arrivalTime
Scheduled arrival time for this segment in UTC.
Returns null when the underlying value is not available or out of the
representable DateTime range.
Returns
- DateTime?: Arrival time in UTC or
null.
Implementation
DateTime? get arrivalTime {
final OperationResult resultString = objectMethod(
pointerId,
'PTRouteSegment',
'getArrivalTime',
);
final int val = resultString['result'];
if (val < -8640000000000000 || val > 8640000000000000) {
return null;
}
return DateTime.fromMillisecondsSinceEpoch(val, isUtc: true);
}