PlatformPayButton constructor

const PlatformPayButton({
  1. required VoidCallback onPressed,
  2. Key? key,
  3. PlatformButtonType type = PlatformButtonType.plain,
  4. PlatformButtonStyle appearance = PlatformButtonStyle.automatic,
  5. int borderRadius = 4,
  6. BoxConstraints? constraints,
  7. OnDidSetShippingContact? onShippingContactSelected,
  8. OnCouponCodeEntered? onCouponCodeEntered,
  9. OnDidSetShippingMethod? onShippingMethodSelected,
  10. OnOrderTracking? onOrderTracking,
  11. PlatformPayWebPaymentRequestCreateOptions paymentRequestCreateOptions = PlatformPayWebPaymentRequestCreateOptions.defaultOptions,
})

Implementation

const PlatformPayButton({
  required this.onPressed,
  super.key,
  this.type = PlatformButtonType.plain,
  this.appearance = PlatformButtonStyle.automatic,
  this.borderRadius = 4,
  this.constraints,
  this.onShippingContactSelected,
  this.onCouponCodeEntered,
  this.onShippingMethodSelected,
  this.onOrderTracking,
  this.paymentRequestCreateOptions =
      PlatformPayWebPaymentRequestCreateOptions.defaultOptions,
});