CardForm constructor

CardForm({
  1. Key? key,
  2. dynamic formKey,
  3. dynamic card,
  4. InputDecoration? cardNumberDecoration,
  5. TextStyle? cardNumberTextStyle,
  6. InputDecoration? cardExpiryDecoration,
  7. TextStyle? cardExpiryTextStyle,
  8. InputDecoration? cardCvcDecoration,
  9. TextStyle? cardCvcTextStyle,
  10. String? cardNumberErrorText,
  11. String? cardExpiryErrorText,
  12. String? cardCvcErrorText,
  13. Decoration? cardDecoration,
  14. InputDecoration? postalCodeDecoration,
  15. TextStyle? postalCodeTextStyle,
  16. String? postalCodeErrorText,
  17. bool displayAnimatedCard = !kIsWeb && false,
  18. 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);