LocationAddress class abstract

Describes the physical address of a location.

Available extensions
Annotations
  • @freezed

Constructors

LocationAddress({@JsonKey.new(name: 'country_code') required String countryCode, @JsonKey.new(name: 'state') String? state, @JsonKey.new(name: 'city') String? city, @JsonKey.new(name: 'street') String? street})
Creates a new LocationAddress object.
const
factory
LocationAddress.fromJson(Map<String, dynamic> json)
Creates a new LocationAddress object from a JSON Map.
factory

Properties

city String?
Optional. City of the location
no setterinherited
copyWith → $LocationAddressCopyWith<LocationAddress>
Create a copy of LocationAddress with the given fields replaced by the non-null parameter values.
no setterinherited
countryCode String
The two-letter ISO 3166-1 alpha-2 country code of the country where the location is located
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state String?
Optional. State of the location
no setterinherited
street String?
Optional. Street address of the location
no setterinherited

Methods

map<TResult extends Object?>(TResult $default(_LocationAddress value)) → TResult

Available on LocationAddress, provided by the LocationAddressPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_LocationAddress value)?) → TResult?

Available on LocationAddress, provided by the LocationAddressPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_LocationAddress value)?, {required TResult orElse()}) → TResult

Available on LocationAddress, provided by the LocationAddressPatterns extension

A variant of map that fallback to returning orElse.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this LocationAddress to a JSON map.
inherited
toString() String
A string representation of this object.
inherited

Operators

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