PathItem class

Represents a path between two stations.

Implemented types

Constructors

PathItem({required int distanceToPrevFeet, required String lineCode, required int seqNum, required String stationCode, required String stationName})
Creates a new PathItem instance.
const
PathItem.empty()
Creates an empty PathItem instance.
PathItem.fromJson(Map<String, dynamic> json)
Creates a new PathItem instance from a JSON object.
factory

Properties

distanceToPrevFeet int
Distance in feet to the previous station in the list.
final
hashCode int
The hash code for this object.
no setteroverride
isEmpty bool
Whether or not this PathItem is empty.
no setter
lineCode String
Two-letter abbreviation for the line (e.g.: RD, BL, YL, OR, GR, or SV) this station's platform is on.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seqNum int
Order of this station in the path.
final
stationCode String
Unique identifier for the station.
final
stationName String
Full name for this station, as shown on the WMATA website.
final

Methods

compareTo(dynamic other) int
Compares this object to another object.
override
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