supportsCloseForLaunchMode function

Future<bool> supportsCloseForLaunchMode(
  1. LaunchMode mode
)

Returns true if closeInAppWebView is supported for mode in the current platform implementation.

If this returns false, closeInAppWebView will not work when launching URLs with mode.

Implementation

Future<bool> supportsCloseForLaunchMode(LaunchMode mode) {
  return UrlLauncherPlatform.instance.supportsMode(convertLaunchMode(mode));
}