RawApplePayButton constructor
RawApplePayButton({
- Key? key,
- VoidCallback? onPressed,
- ApplePayButtonStyle style = ApplePayButtonStyle.black,
- ApplePayButtonType type = ApplePayButtonType.plain,
Raw button without Apple Pay processing logic
Implementation
RawApplePayButton({
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());
}