CreditCardWidget constructor

const CreditCardWidget(
  1. {Key key,
  2. @required String cardNumber,
  3. @required String expiryDate,
  4. @required String cardHolderName,
  5. @required String cvvCode,
  6. @required bool showBackView,
  7. Duration animationDuration = const Duration(milliseconds: 500),
  8. double height,
  9. double width,
  10. TextStyle textStyle,
  11. Color cardBgColor = const Color(0xff1b447b)}
)

Implementation

const CreditCardWidget({
  Key key,
  @required this.cardNumber,
  @required this.expiryDate,
  @required this.cardHolderName,
  @required this.cvvCode,
  @required this.showBackView,
  this.animationDuration = const Duration(milliseconds: 500),
  this.height,
  this.width,
  this.textStyle,
  this.cardBgColor = const Color(0xff1b447b),
})  : assert(cardNumber != null),
      assert(showBackView != null),
      super(key: key);