Station class

Contains information about a station.

Constructors

Station({required Address address, required String stationCode, required String name, required double latitude, required double longitude, required String lineCode1, required String lineCode2, required String lineCode3, required String lineCode4, required String stationTogether1, required String stationTogether2})
Creates a new Station instance.
const
Station.empty()
Creates an empty Station instance.
Station.fromJson(Map<String, dynamic> json)
Creates a new Station instance from a JSON object.
factory

Properties

address Address
The address information for this station.
final
hashCode int
The hash code for this object.
no setteroverride
isEmpty bool
Whether or not this Station instance is empty.
no setter
isNotEmpty bool
Whether or not this Station instance is not empty.
no setter
latitude double
final
lineCode1 String
Two-letter abbreviation for one line (e.g.: RD, BL, YL, OR, GR, or SV) served by this station.
final
lineCode2 String
Additional line served by this station, if applicable.
final
lineCode3 String
Additional line served by this station, if applicable.
final
lineCode4 String
Additional line served by this station, if applicable.
final
longitude double
final
name String
The name of the station.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stationCode String
The station code.
final
stationTogether1 String
For stations with multiple platforms (e.g.: Gallery Place, Fort Totten, L'Enfant Plaza, and Metro Center), the additional station code will be listed here.
final
stationTogether2 String
Similar in function to stationTogether1.
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 Station instance.
toString() String
A string representation of this object.
override

Operators

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