PTTrip class
This class represents a public transport trip. It contains the route, agency, trip index, trip date, departure time, a flag indicating if real-time information is available, an optional cancellation flag, delay in minutes, a list of stop times, stop index, stop platform code, and flags indicating if wheelchair access and bike allowance are available. The trip is associated with a specific route and agency.
Constructors
-
PTTrip({required PTRoute route, required PTAgency agency, required int tripIndex, required DateTime? tripDate, required bool hasRealtime, required DateTime? departureTime, bool? isCancelled, int? delayMinutes, required List<
PTStopTime> stopTimes, required int stopIndex, required String stopPlatformCode, required bool isWheelchairAccessible, required bool isBikeAllowed}) - Constructor for the PTTrip class.
Properties
- agency ↔ PTAgency
-
The agency associated with the trip.
getter/setter pair
- delayMinutes ↔ int?
-
The delay in minutes.
This can be null if hasRealtime is false.
getter/setter pair
- departureTime ↔ DateTime?
-
The departure time of the trip.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasRealtime ↔ bool
-
A flag indicating if real-time information is available.
getter/setter pair
- isBikeAllowed ↔ bool
-
A flag indicating if bikes are allowed on the trip.
getter/setter pair
- isCancelled ↔ bool?
-
An optional flag indicating if the trip is cancelled.
getter/setter pair
- isWheelchairAccessible ↔ bool
-
A flag indicating if the stop is wheelchair accessible.
getter/setter pair
- route ↔ PTRoute
-
The route associated with the trip.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stopIndex ↔ int
-
The index of the stop in the trip.
This is the index of the stop in the list of stop times.
getter/setter pair
- stopPlatformCode ↔ String
-
The platform code of the stop.
getter/setter pair
-
stopTimes
↔ List<
PTStopTime> -
A list of stop times associated with the trip.
getter/setter pair
- tripDate → DateTime?
-
The date of the trip.
final
- tripIndex → int
-
The index of the trip.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited