StandardRoute class

Standard route model.

Constructors

StandardRoute({required String lineCode, required List<RouteTrackCircuit> trackCircuits, required int trackNum})
Creates a new StandardRoute object.
const
StandardRoute.empty()
Creates an empty StandardRoute.
const
StandardRoute.fromJson(Map<String, dynamic> json)
Creates a StandardRoute from a JSON object.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
isEmpty bool
Whether or not this StandardRoute is empty.
no setter
isNotEmpty bool
Whether or not this StandardRoute is not empty.
no setter
lineCode String
Abbreviation for the revenue line.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
trackCircuits List<RouteTrackCircuit>
Array containing ordered track circuit information.
final
trackNum int
Track number (1 or 2).
final

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