PEApplePayButton constructor

const PEApplePayButton({
  1. Key? key,
  2. required PEPaymentRequest paymentRequest,
  3. double width = double.infinity,
  4. double height = 36,
  5. dynamic onPaymentFailed(
    1. Exception
    )?,
  6. VoidCallback? onPaymentSheetDismissed,
  7. dynamic onTokenDidReturn(
    1. String,
    2. dynamic,
    3. PEApplePayContact?,
    4. PEApplePayContact?,
    )?,
})

Implementation

const PEApplePayButton(
    {Key? key,
    required this.paymentRequest,
    this.width = double.infinity,
    this.height = 36,
    this.onPaymentFailed,
    this.onPaymentSheetDismissed,
    this.onTokenDidReturn,
    })
    : super(key: key);