ScheduleArrival class

Represents a scheduled arrival of a bus at a stop.

Constructors

ScheduleArrival({required int directionNum, required DateTime endTime, required String routeId, required DateTime scheduleTime, required DateTime startTime, required String direction, required String tripHeadsign, required String tripId})
Creates a new ScheduleArrival.
const
ScheduleArrival.empty()
Creates an empty ScheduleArrival.
ScheduleArrival.fromJson(Map<String, dynamic> json)
Creates a new ScheduleArrival from a JSON object.
factory

Properties

direction String
General direction of the trip (e.g.: NORTH, SOUTH, EAST, WEST).
final
directionNum int
Denotes a binary direction (0 or 1) of the bus.
final
endTime DateTime
Scheduled end date and time (Eastern Standard Time) for this trip.
final
hashCode int
The hash code for this object.
no setteroverride
isEmpty bool
Whether or not this ScheduleArrival is empty.
no setter
isNotEmpty bool
Whether or not this ScheduleArrival is not empty.
no setter
routeId String
Base route name as shown on the bus.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scheduleTime DateTime
Date and time (Eastern Standard Time) when the bus is scheduled to stop at this location.
final
startTime DateTime
Scheduled start date and time (Eastern Standard Time) for this trip.
final
tripHeadsign String
Destination of the bus.
final
tripId String
Unique identifier for the trip.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns a JSON representation of this ScheduleArrival.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override