ShippingDetailsAddress class abstract
- Available extensions
- Annotations
-
- @freezed
Constructors
- ShippingDetailsAddress({String? line1, String? line2, String? city, String? state, String? country, @JsonKey.new(name: 'postal_code') String? postalCode})
-
constfactory
-
ShippingDetailsAddress.fromJson(Map<
String, dynamic> json) -
factory
Properties
- city → String?
-
City, district, suburb, town, or village.
no setterinherited
-
copyWith
→ $ShippingDetailsAddressCopyWith<
ShippingDetailsAddress> -
Create a copy of ShippingDetailsAddress
with the given fields replaced by the non-null parameter values.
no setterinherited
- country → String?
-
Two-letter country code (ISO 3166-1 alpha-2).
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- line1 → String?
-
Address line 1 (e.g., street, PO Box, or company name).
no setterinherited
- line2 → String?
-
Address line 2 (e.g., apartment, suite, unit, or building).
no setterinherited
- postalCode → String?
-
ZIP or postal code.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → String?
-
State, county, province, or region.
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_PaymentElementBillingDetailsAddress value)) → TResult -
Available on ShippingDetailsAddress, provided by the ShippingDetailsAddressPatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_PaymentElementBillingDetailsAddress value)?) → TResult? -
Available on ShippingDetailsAddress, provided by the ShippingDetailsAddressPatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_PaymentElementBillingDetailsAddress value)?, {required TResult orElse()}) → TResult -
Available on ShippingDetailsAddress, provided by the ShippingDetailsAddressPatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> (TResult $default(String? line1, String? line2, String? city, String? state, String? country, String? postalCode)?, {required TResult orElse()}) → TResult -
Available on ShippingDetailsAddress, provided by the ShippingDetailsAddressPatterns 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 ShippingDetailsAddress to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(String? line1, String? line2, String? city, String? state, String? country, String? postalCode)) → TResult -
Available on ShippingDetailsAddress, provided by the ShippingDetailsAddressPatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String? line1, String? line2, String? city, String? state, String? country, String? postalCode)?) → TResult? -
Available on ShippingDetailsAddress, provided by the ShippingDetailsAddressPatterns extension
A variant ofwhen
that fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited