WebCardField constructor

WebCardField({
  1. required CardEditController controller,
  2. CardChangedCallback? onCardChanged,
  3. Key? key,
  4. CardFocusCallback? onFocus,
  5. CardStyle? style,
  6. CardPlaceholder? placeholder,
  7. bool enablePostalCode = false,
  8. double? width,
  9. double? height = kCardFieldDefaultHeight,
  10. BoxConstraints? constraints,
  11. FocusNode? focusNode,
  12. bool autofocus = false,
  13. bool dangerouslyUpdateFullCardDetails = false,
})

Implementation

WebCardField({
  required this.controller,
  this.onCardChanged,
  Key? key,
  this.onFocus,
  this.style,
  this.placeholder,
  this.enablePostalCode = false,
  double? width,
  double? height = kCardFieldDefaultHeight,
  BoxConstraints? constraints,
  this.focusNode,
  this.autofocus = false,
  this.dangerouslyUpdateFullCardDetails = false,
})  : assert(constraints == null || constraints.debugAssertIsValid()),
      constraints = (width != null || height != null)
          ? constraints?.tighten(width: width, height: height) ??
              BoxConstraints.tightFor(width: width, height: height)
          : constraints,
      super(key: key);