createWebView method

void createWebView({
  1. Key? key,
  2. Payload? payload,
  3. bool? showCloseButton,
  4. Widget? closeButton,
  5. BootpayDefaultCallback? onCancel,
  6. BootpayDefaultCallback? onError,
  7. BootpayCloseCallback? onClose,
  8. BootpayDefaultCallback? onIssued,
  9. BootpayConfirmCallback? onConfirm,
  10. BootpayAsyncConfirmCallback? onConfirmAsync,
  11. BootpayDefaultCallback? onDone,
  12. String? userAgent,
  13. 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;
}