ScheduleDirection class

Represents a direction of a bus route in a schedule.

Constructors

ScheduleDirection({required DateTime endTime, required String routeId, required DateTime startTime, required List<ScheduleStop> stops, required String direction, required String tripHeadsign, required String tripId})
Creates a ScheduleDirection object.
const
ScheduleDirection.empty()
Creates an empty ScheduleDirection object.
ScheduleDirection.fromJson(Map<String, dynamic> json)
Creates a ScheduleDirection object from a JSON object.
factory

Properties

direction String
General direction of the trip (NORTH, SOUTH, EAST, WEST, LOOP, etc.).
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 object is empty.
no setter
isNotEmpty bool
Whether or not this object 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
startTime DateTime
Scheduled start date and time (Eastern Standard Time) for this trip.
final
stops List<ScheduleStop>
Array containing location and time information for each stop in the schedule.
final
tripHeadsign String
Descriptive text of where the bus is headed.
final
tripId String
Unique trip ID.
final

Methods

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

Operators

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