createWebView method
void
createWebView({
- Key? key,
- Payload? payload,
- bool? showCloseButton,
- Widget? closeButton,
- BootpayDefaultCallback? onCancel,
- BootpayDefaultCallback? onError,
- BootpayCloseCallback? onClose,
- BootpayDefaultCallback? onIssued,
- BootpayConfirmCallback? onConfirm,
- BootpayAsyncConfirmCallback? onConfirmAsync,
- BootpayDefaultCallback? onDone,
- String? userAgent,
- int? requestType,
Implementation
void createWebView({
Key? key,
Payload? payload,
bool? showCloseButton,
Widget? closeButton,
BootpayDefaultCallback? onCancel,
BootpayDefaultCallback? onError,
BootpayCloseCallback? onClose,
BootpayDefaultCallback? onIssued,
BootpayConfirmCallback? onConfirm,
BootpayAsyncConfirmCallback? onConfirmAsync,
BootpayDefaultCallback? onDone,
String? userAgent,
int? requestType
}) {
if(webView == null) {
webView = BootpayWebView(key: key);
}
webView?.payload = payload;
webView?.showCloseButton = showCloseButton;
webView?.closeButton = closeButton;
webView?.onCancel = onCancel;
webView?.onError = onError;
webView?.onClose = onClose;
webView?.onIssued = onIssued;
webView?.onConfirm = onConfirm;
webView?.onConfirmAsync = onConfirmAsync;
webView?.onDone = onDone;
webView?.userAgent = userAgent;
webView?.requestType = requestType;
}