supportsCloseForMode method
Returns true if the given launch mode can be closed with closeWebView
.
Implementation
Future<bool> supportsCloseForMode(PreferredLaunchMode mode) {
// This is the historical documented behavior, so default to that for
// compatibility.
return Future<bool>.value(mode == PreferredLaunchMode.inAppWebView);
}