BillingDetailsFields constructor

const BillingDetailsFields({
  1. @Default(PaymentElementFieldRequired.auto) PaymentElementFieldRequired name,
  2. @Default(PaymentElementFieldRequired.auto) PaymentElementFieldRequired email,
  3. @Default(PaymentElementFieldRequired.auto) PaymentElementFieldRequired phone,
  4. @Default(PaymentElementAddressFields.auto) PaymentElementAddressFields address,
})

Implementation

const factory BillingDetailsFields({
  @Default(PaymentElementFieldRequired.auto) PaymentElementFieldRequired name,
  @Default(PaymentElementFieldRequired.auto)
  PaymentElementFieldRequired email,
  @Default(PaymentElementFieldRequired.auto)
  PaymentElementFieldRequired phone,
  @Default(PaymentElementAddressFields.auto)
  PaymentElementAddressFields address,
}) = _BillingDetailsFields;