FamCardForm constructor

const FamCardForm({
  1. Key? key,
  2. CardFormStyle style = CardFormStyle.standard,
  3. ValueChanged<CardFormDetails>? onCardChanged,
  4. ValueChanged<bool>? onFocusChanged,
  5. bool enableCardholderName = false,
  6. bool enablePostalCode = false,
  7. String? countryCode,
  8. bool autofocus = false,
  9. bool enabled = true,
  10. FamTheme? theme,
  11. String cardNumberLabel = 'Card number',
  12. String expiryLabel = 'Expiry date',
  13. String cvcLabel = 'CVC',
  14. String cardholderNameLabel = 'Name on card',
  15. String postalCodeLabel = 'ZIP / Postal code',
})

Creates a card form.

Implementation

const FamCardForm({
  super.key,
  this.style = CardFormStyle.standard,
  this.onCardChanged,
  this.onFocusChanged,
  this.enableCardholderName = false,
  this.enablePostalCode = false,
  this.countryCode,
  this.autofocus = false,
  this.enabled = true,
  this.theme,
  this.cardNumberLabel = 'Card number',
  this.expiryLabel = 'Expiry date',
  this.cvcLabel = 'CVC',
  this.cardholderNameLabel = 'Name on card',
  this.postalCodeLabel = 'ZIP / Postal code',
});