PTStopTime constructor
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;