Address class

Represents the address of a station.

Constructors

Address({required String city, required String state, required String street, required String zip})
Creates a new Address instance.
const
Address.empty()
Creates an empty Address instance.
Address.fromJson(Map<String, dynamic> json)
Creates a new Address instance from a JSON object.
factory

Properties

city String
The city name.
final
hashCode int
The hash code for this object.
no setteroverride
isEmpty bool
Whether or not this Address instance is empty.
no setter
isNotEmpty bool
Whether or not this Address instance is not empty.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state String
The state name (abbreviated).
final
street String
The street name and number.
final
zip String
The zip 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 Address instance.
toString() String
A string representation of this object.
override

Operators

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