WebCardField constructor
WebCardField({
- required CardEditController controller,
- CardChangedCallback? onCardChanged,
- Key? key,
- CardFocusCallback? onFocus,
- CardStyle? style,
- CardPlaceholder? placeholder,
- bool enablePostalCode = false,
- double? width,
- double? height = kCardFieldDefaultHeight,
- BoxConstraints? constraints,
- FocusNode? focusNode,
- bool autofocus = false,
- 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);