Location class

Constructors

Location({String? street, String? city, String? state, num? zip})
const
Location.fromJson(String source)
It converts a JSON string into a Location object.
factory
Location.fromMap(Map<String, dynamic> map)
It creates a Location object from a map.
factory

Properties

city String?
final
hashCode int
The hash code for this object.
no setterinherited
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state String?
final
street String?
final
stringify bool
If set to true, the toString method will be overridden to output this instance's props.
no setter
zip num?
final

Methods

copyWith({String? street, String? city, String? state, num? zip}) Location
"If the caller passes in a value for a parameter, use that value, otherwise use the value of the corresponding field."
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
toMap() Map<String, dynamic>
toMap() returns a Map<String, dynamic> that contains the street, city, state, and zip values of the Address object
toString() String
A string representation of this object.
inherited

Operators

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