DayTimings class
Represents the timing of certain events at a station on a given day.
Constructors
-
DayTimings({required Time openingTime, required List<
TerminusTrain> firstTrains, required List<TerminusTrain> lastTrains}) -
Creates a new DayTimings object.
const
- DayTimings.empty()
- Creates an empty DayTimings object.
-
DayTimings.fromJson(Map<
String, dynamic> json) -
Creates a new DayTimings object from JSON data.
factory
Properties
-
firstTrains
→ List<
TerminusTrain> -
Structure containing information about the first train of the day.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isEmpty → bool
-
Whether or not this DayTimings object is empty.
no setter
- isNotEmpty → bool
-
Whether or not this DayTimings object is not empty.
no setter
-
lastTrains
→ List<
TerminusTrain> -
Structure containing information about the last train of the day.
final
- openingTime → Time
-
Station opening time.
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 representation of this DayTimings object.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override