show static method

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

Implementation

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