show static method

Future<PaymentPaymobResponse?> show({
  1. required BuildContext context,
  2. required String redirectURL,
  3. void onPayment(
    1. PaymentPaymobResponse
    )?,
})

Implementation

static Future<PaymentPaymobResponse?> show({
  required BuildContext context,
  required String redirectURL,
  void Function(PaymentPaymobResponse)? onPayment,
}) =>
    Navigator.of(context).push(
      MaterialPageRoute(
        builder: (context) {
          return PaymobIFrame(
            onPayment: onPayment,
            redirectURL: redirectURL,
          );
        },
      ),
    );