RawApplePayButton constructor

RawApplePayButton({
  1. Key? key,
  2. VoidCallback? onPressed,
  3. ApplePayButtonStyle style = ApplePayButtonStyle.black,
  4. ApplePayButtonType type = ApplePayButtonType.plain,
  5. double? cornerRadius,
})

Creates an Apple Pay button widget with the parameters specified.

Implementation

RawApplePayButton({
  super.key,
  this.onPressed,
  this.style = ApplePayButtonStyle.black,
  this.type = ApplePayButtonType.plain,
  this.cornerRadius,
}) : constraints = BoxConstraints.tightFor(
        width: type.minimumAssetWidth,
        height: minimumButtonHeight,
      ) {
  assert(constraints.debugAssertIsValid());
}