ScheduleStop class
Represents a stop in a schedule.
Constructors
- ScheduleStop({required int stopId, required String name, required int seqNum, required DateTime time})
-
Creates a ScheduleStop object.
const
- ScheduleStop.empty()
- Creates an empty ScheduleStop object.
-
ScheduleStop.fromJson(Map<
String, dynamic> json) -
Creates a ScheduleStop object from a JSON object.
factory
Properties
- 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
- name → String
-
Stop name.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- seqNum → int
-
Order of the stop in the sequence of stops.
final
- stopId → int
-
7-digit regional ID which can be used in various bus-related methods.
final
- time → DateTime
-
Scheduled departure date and time (Eastern Standard Time) from this stop.
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