PlatformPayButton constructor
const
PlatformPayButton({
- required VoidCallback onPressed,
- Key? key,
- PlatformButtonType type = PlatformButtonType.plain,
- PlatformButtonStyle appearance = PlatformButtonStyle.automatic,
- int borderRadius = 4,
- BoxConstraints? constraints,
- OnDidSetShippingContact? onShippingContactSelected,
- OnCouponCodeEntered? onCouponCodeEntered,
- OnDidSetShippingMethod? onShippingMethodSelected,
- OnOrderTracking? onOrderTracking,
- 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,
});