ApplePayButton constructor
ApplePayButton({
- Key? key,
- ApplePayButtonStyle style = ApplePayButtonStyle.black,
- ApplePayButtonType type = ApplePayButtonType.plain,
- double cornerRadius = 4.0,
- VoidCallback? onPressed,
- double? width,
- double? height = _kApplePayButtonDefaultHeight,
- BoxConstraints? constraints,
Implementation
ApplePayButton({
Key? key,
this.style = ApplePayButtonStyle.black,
this.type = ApplePayButtonType.plain,
this.cornerRadius = 4.0,
this.onPressed,
double? width,
double? height = _kApplePayButtonDefaultHeight,
BoxConstraints? constraints,
}) : 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);