StationEntrance class
Represents an entrance to a station.
Constructors
- StationEntrance({required String name, required String description, required double latitude, required double longitude, required String stationCode1, required String stationCode2})
-
Creates a new StationEntrance.
const
- StationEntrance.empty()
- Creates an empty StationEntrance.
-
StationEntrance.fromJson(Map<
String, dynamic> json) -
Creates a new StationEntrance from a JSON object.
factory
Properties
- description → String
-
Additional information for the entrance, if available.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isEmpty → bool
-
Whether or not this StationEntrance is empty.
no setter
- isNotEmpty → bool
-
Whether or not this StationEntrance is not empty.
no setter
- latitude → double
-
final
- longitude → double
-
final
- name → String
-
Name of the entrance (usually the station name and nearest intersection).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stationCode1 → String
-
The station code associated with this entrance.
final
- stationCode2 → String
-
For stations containing multiple platforms (e.g.: Gallery Place, Fort
Totten, L'Enfant Plaza, and Metro Center), the other station code.
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 StationEntrance.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override