PTStopTime constructor

PTStopTime({
  1. required String stopName,
  2. required Coordinates coordinates,
  3. required bool hasRealtime,
  4. required int delay,
  5. required DateTime? departureTime,
  6. required int stopDetails,
  7. required bool isBefore,
})

Create a PTStopTime.

API users do not typically create instances of this class directly.

Parameters

  • stopName: (String) Name of the stop.
  • coordinates: (Coordinates) WGS84 coordinates for the stop.
  • hasRealtime: (bool) True if realtime data is available.
  • delay: (int) Delay in seconds.
  • departureTime: (DateTime?) Optional departure time (UTC flag, local value).
  • stopDetails: (int) Bitmask with stop details.
  • isBefore: (bool) True when the stop time is before current time.

Implementation

PTStopTime({
  required this.stopName,
  required this.coordinates,
  required this.hasRealtime,
  required this.delay,
  required this.departureTime,
  required int stopDetails,
  required this.isBefore,
}) : _stopDetails = stopDetails;