Line class

Represents a rail line.

Constructors

Line({required String name, required String startStationCode, required String endStationCode, required String internalDestination1, required String internalDestination2, required String lineCode})
Creates a new Line.
const
Line.empty()
Creates an empty Line.
Line.fromJson(Map<String, dynamic> json)
Creates a new Line from a JSON object.
factory

Properties

endStationCode String
End station code.
final
hashCode int
The hash code for this object.
no setteroverride
internalDestination1 String
Intermediate terminal station code.
final
internalDestination2 String
Intermediate terminal station code.
final
isEmpty bool
Whether or not this Line is empty.
no setter
isNotEmpty bool
Whether or not this Line is not empty.
no setter
lineCode String
Two-letter abbreviation for the line (e.g.: RD, BL, YL, OR, GR, or SV).
final
name String
Full name of line color.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startStationCode String
Start station code. For example, will be "F11" (Branch Avenue) for the Green Line, "A15" (Shady Grove) for the Red Line, etc.
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