show static method
Future<PaymentPaymobResponse?>
show({
- required BuildContext context,
- required String redirectURL,
- void onPayment()?,
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,
);
},
),
);