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