Path class

Constructors

Path({required List<PathItem> items})
Creates a new Path instance.
Path.empty()
Creates an empty Path instance.
factory
Path.fromJson(Map<String, dynamic> json)
Creates a new Path instance from a JSON object.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
intPathLengthFeet int
The length of the path in feet.
final
isEmpty bool
Whether or not this Path is empty.
no setter
isNotEmpty bool
Whether or not this Path is not empty.
no setter
items List<PathItem>
The path items that make up this path.
final
numStops int
The number of stops in this path.
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 object.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override