PathDetailsDirection class
Represents a direction of a bus route.
Constructors
-
PathDetailsDirection({required String direction, required List<
ShapePoint> shape, required List<Stop> stops, required String tripHeadsign}) -
Creates a PathDetailsDirection object.
const
- PathDetailsDirection.empty()
- Creates an empty PathDetailsDirection object.
-
PathDetailsDirection.fromJson(Map<
String, dynamic> json) -
Creates a PathDetailsDirection object from a JSON object.
factory
Properties
- direction → String
-
General direction of the route variant (NORTH, SOUTH, EAST, WEST, LOOP,
etc.).
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
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
shape
→ List<
ShapePoint> -
List of shape points for the route variant.
final
-
stops
→ List<
Stop> -
List of stops for the route variant.
final
- tripHeadsign → String
-
Descriptive text of where the bus is headed.
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