BillingAddress class abstract

Available extensions
Annotations
  • @freezed

Constructors

BillingAddress({String? line1, String? line2, String? city, String? state, String? country, @JsonKey.new(name: 'postal_code') String? postalCode})
const
factory
BillingAddress.fromJson(Map<String, dynamic> json)
factory

Properties

city String?
City, district, suburb, town, or village.
no setterinherited
copyWith → $BillingAddressCopyWith<BillingAddress>
Create a copy of BillingAddress 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 BillingAddress, provided by the BillingAddressPatterns extension

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

Available on BillingAddress, provided by the BillingAddressPatterns extension

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

Available on BillingAddress, provided by the BillingAddressPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>(TResult $default(String? line1, String? line2, String? city, String? state, String? country, String? postalCode)?, {required TResult orElse()}) → TResult

Available on BillingAddress, provided by the BillingAddressPatterns extension

A variant of when that fallback to an orElse callback.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this BillingAddress 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 BillingAddress, provided by the BillingAddressPatterns extension

A switch-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 BillingAddress, provided by the BillingAddressPatterns extension

A variant of when that fallback to returning null

Operators

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