FamCardForm constructor
const
FamCardForm({
- Key? key,
- CardFormStyle style = CardFormStyle.standard,
- ValueChanged<
CardFormDetails> ? onCardChanged, - ValueChanged<
bool> ? onFocusChanged, - bool enableCardholderName = false,
- bool enablePostalCode = false,
- String? countryCode,
- bool autofocus = false,
- bool enabled = true,
- FamTheme? theme,
- String cardNumberLabel = 'Card number',
- String expiryLabel = 'Expiry date',
- String cvcLabel = 'CVC',
- String cardholderNameLabel = 'Name on card',
- 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',
});