create<T> static method

AddressValue<T> create<T>({
  1. T? type,
  2. String? description,
  3. String? number,
  4. String? street,
  5. String? other,
  6. String? municipality,
  7. String? county,
  8. String? province,
  9. String? postalCode,
  10. 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,
  );
}