Schedule class
Represents a bus route schedule.
Constructors
-
Schedule({required List<
ScheduleDirection> direction0, required List<ScheduleDirection> direction1, required String name}) -
Creates a Schedule object.
const
- Schedule.empty()
-
Creates an empty Schedule object.
const
-
Schedule.fromJson(Map<
String, dynamic> json) -
Creates a Schedule object from a JSON object.
factory
Properties
-
direction0
→ List<
ScheduleDirection> -
Array containing trip information.
final
-
direction1
→ List<
ScheduleDirection> -
Array containing trip information.
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
- name → String
-
Descriptive name for the route.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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