ApplePayButton constructor

ApplePayButton({
  1. Key? key,
  2. ApplePayButtonStyle style = ApplePayButtonStyle.black,
  3. ApplePayButtonType type = ApplePayButtonType.plain,
  4. double cornerRadius = 4.0,
  5. VoidCallback? onPressed,
  6. double? width,
  7. double? height = _kApplePayButtonDefaultHeight,
  8. 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);