PayButton constructor
PayButton({
- Key? key,
- required PayProvider buttonProvider,
- required PaymentConfiguration paymentConfiguration,
- void onPaymentResult()?,
- double width = 0,
- double height = 0,
- EdgeInsets margin = const EdgeInsets.all(0),
- void onError(
- Object? error
- Widget? childOnError,
- Widget? loadingIndicator,
Initializes the button and the payment client that handles the requests.
Implementation
PayButton({
super.key,
required this.buttonProvider,
required final PaymentConfiguration paymentConfiguration,
this.onPaymentResult,
this.width = 0,
this.height = 0,
this.margin = const EdgeInsets.all(0),
this.onError,
this.childOnError,
this.loadingIndicator,
}) : _payClient = Pay({buttonProvider: paymentConfiguration});