departureTime property

DateTime? get departureTime

Scheduled departure time for this instruction (UTC).

Returns

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

Implementation

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

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

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