PathDetails class
Represents the path details for a bus route on a given date.
Constructors
- PathDetails({required PathDetailsDirection direction0, required PathDetailsDirection direction1, required String name, required String routeId, required DateTime date})
-
Creates a PathDetails object.
const
- PathDetails.empty()
- Creates an empty PathDetails object.
-
PathDetails.fromJson(Map<
String, dynamic> json) -
Creates a PathDetails object from a JSON object.
factory
Properties
- date → DateTime
-
The date that this set of path details came from.
final
- direction0 → PathDetailsDirection
-
Structures describing path/stop information.
final
- direction1 → PathDetailsDirection
-
Structures describing path/stop 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
- routeId → String
-
Bus route variant (e.g.: 10A, 10Av1, etc.).
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 representing this object.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override