ApplePayButton constructor Null safety
- {Key? key,
- VoidCallback? onPressed,
- ApplePayButtonStyle style = ApplePayButtonStyle.black,
- ApplePayButtonType type = ApplePayButtonType.plain}
Creates an Apple Pay button widget with the parameters specified.
Implementation
ApplePayButton({
Key? key,
this.onPressed,
this.style = ApplePayButtonStyle.black,
this.type = ApplePayButtonType.plain,
}) : constraints = BoxConstraints.tightFor(
width: type.minimumAssetWidth,
height: minimumButtonHeight,
),
super(key: key) {
assert(constraints.debugAssertIsValid());
}