dismiss method

  1. @override
void dismiss(
  1. BuildContext? context
)
override

Implementation

@override
void dismiss(BuildContext? context) {
  if(webView != null) {
    if(context != null && context.mounted && Navigator.of(context).canPop()) {
      Navigator.of(context).pop();
    } else {
      print("Bootpay dismiss: context is null, not mounted, or destroyed");
    }
    webView = null;
  }
}