CardForm constructor
CardForm({
- Key? key,
- dynamic formKey,
- dynamic card,
- InputDecoration? cardNumberDecoration,
- TextStyle? cardNumberTextStyle,
- InputDecoration? cardExpiryDecoration,
- TextStyle? cardExpiryTextStyle,
- InputDecoration? cardCvcDecoration,
- TextStyle? cardCvcTextStyle,
- String? cardNumberErrorText,
- String? cardExpiryErrorText,
- String? cardCvcErrorText,
- Decoration? cardDecoration,
- InputDecoration? postalCodeDecoration,
- TextStyle? postalCodeTextStyle,
- String? postalCodeErrorText,
- bool displayAnimatedCard = !kIsWeb && false,
- bool displayPostalCode = true,
Implementation
CardForm(
{Key? key,
formKey,
card,
this.cardNumberDecoration,
this.cardNumberTextStyle,
this.cardExpiryDecoration,
this.cardExpiryTextStyle,
this.cardCvcDecoration,
this.cardCvcTextStyle,
this.cardNumberErrorText,
this.cardExpiryErrorText,
this.cardCvcErrorText,
this.cardDecoration,
this.postalCodeDecoration,
this.postalCodeTextStyle,
this.postalCodeErrorText,
this.displayAnimatedCard = !kIsWeb && false,
this.displayPostalCode = true})
: card = card ?? StripeCard(),
formKey = formKey ?? GlobalKey(),
super(key: key);