Address class abstract
- Available extensions
- Annotations
-
- @Freezed.new(makeCollectionsUnmodifiable: false)
Constructors
- Address({@JsonKey.new(name: 'latitude') String? latitude, @JsonKey.new(name: 'longitude') String? longitude, @JsonKey.new(name: 'locality') String? locality, @JsonKey.new(name: 'name') String? name, @JsonKey.new(name: 'placeID') String? placeID, @JsonKey.new(name: 'formattedAddress') String? formattedAddress})
-
factory
-
Address.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
copyWith
→ $AddressCopyWith<
Address> -
Create a copy of Address
with the given fields replaced by the non-null parameter values.
no setterinherited
- formattedAddress → String?
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- latitude → String?
-
no setterinherited
- locality → String?
-
no setterinherited
- longitude → String?
-
no setterinherited
- name → String?
-
no setterinherited
- placeID → String?
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_Address value)) → TResult -
Available on Address, provided by the AddressPatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_Address value)?) → TResult? -
Available on Address, provided by the AddressPatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_Address value)?, {required TResult orElse()}) → TResult -
Available on Address, provided by the AddressPatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> (TResult $default(String? latitude, String? longitude, String? locality, String? name, String? placeID, String? formattedAddress)?, {required TResult orElse()}) → TResult -
Available on Address, provided by the AddressPatterns extension
A variant ofwhen
that fallback to anorElse
callback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this Address to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(String? latitude, String? longitude, String? locality, String? name, String? placeID, String? formattedAddress)) → TResult -
Available on Address, provided by the AddressPatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String? latitude, String? longitude, String? locality, String? name, String? placeID, String? formattedAddress)?) → TResult? -
Available on Address, provided by the AddressPatterns extension
A variant ofwhen
that fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited