arrivalTime property

DateTime? get arrivalTime

Scheduled arrival time for this instruction (UTC).

Returns

  • DateTime?: Arrival time in UTC or null when unavailable.

Implementation

DateTime? get arrivalTime {
  final OperationResult resultString = objectMethod(
    pointerId,
    'PTRouteInstruction',
    'getArrivalTime',
  );

  final int val = resultString['result'];
  if (val < -8640000000000000 || val > 8640000000000000) {
    return null;
  }

  return DateTime.fromMillisecondsSinceEpoch(val, isUtc: true);
}