goBootpayRequest method
Future<void>
goBootpayRequest({
- Key? key,
- BuildContext? context,
- Payload? payload,
- bool? showCloseButton,
- Widget? closeButton,
- BootpayDefaultCallback? onCancel,
- BootpayDefaultCallback? onError,
- BootpayCloseCallback? onClose,
- BootpayDefaultCallback? onIssued,
- BootpayConfirmCallback? onConfirm,
- BootpayAsyncConfirmCallback? onConfirmAsync,
- BootpayDefaultCallback? onDone,
- String? userAgent,
- double? padding,
- int? requestType,
Implementation
Future<void> goBootpayRequest(
{
Key? key,
BuildContext? context,
Payload? payload,
bool? showCloseButton,
Widget? closeButton,
BootpayDefaultCallback? onCancel,
BootpayDefaultCallback? onError,
BootpayCloseCallback? onClose,
BootpayDefaultCallback? onIssued,
BootpayConfirmCallback? onConfirm,
BootpayAsyncConfirmCallback? onConfirmAsync,
BootpayDefaultCallback? onDone,
String? userAgent,
double? padding,
int? requestType
}) async {
// if(isTabletOrWeb(context)) {
// if(userAgent == null) {
// userAgent = defaultOSUserAgent();
// // userAgent = iOSUserAgent;
// }
// }
createWebView(
payload: payload,
showCloseButton: showCloseButton,
key: key,
closeButton: closeButton,
onCancel: onCancel,
onError: onError,
onClose: onClose,
onIssued: onIssued,
onConfirm: onConfirm,
onConfirmAsync: onConfirmAsync,
onDone: onDone,
userAgent: userAgent,
requestType: requestType,
);
webView?.isWidget = false;
if(context == null) return;
await Navigator.push(
context,
MaterialPageRoute(builder: (context) => BootpayAppPage(webView, padding))
);
webView = null;
}