create<T> static method
AddressValue<T>
create<
T>({ - T? type,
- String? description,
- String? number,
- String? street,
- String? other,
- String? municipality,
- String? county,
- String? province,
- String? postalCode,
- String countryCode = 'US',
})
Implementation
static AddressValue<T> create<T>({
T? type,
String? description,
String? number,
String? street,
String? other,
String? municipality,
String? county,
String? province,
String? postalCode,
String countryCode = 'US',
}) {
return AddressValue<T>._(
key: UniqueKey(),
type: type,
description: description,
number: number ?? '',
street: street ?? '',
other: other ?? '',
municipality: municipality ?? '',
county: county,
province: province ?? '',
postalCode: postalCode ?? '',
countryCode: countryCode,
);
}