@@ -44,6 +44,9 @@ import 'package:url_launcher_platform_interface/url_launcher_platform_interface.
4444/// [enableDomStorage] is an Android only setting. If true, WebView enable
4545/// DOM storage.
4646/// [headers] is an Android only setting that adds headers to the WebView.
47+ /// [webOnlyWindowName] is an Web only setting . _blank opens the new url in new tab ,
48+ /// _self opens the new url in current tab.
49+ /// Default behaviour is to open the url in new tab.
4750///
4851/// Note that if any of the above are set to true but the URL is not a web URL,
4952/// this will throw a [PlatformException] .
@@ -63,6 +66,7 @@ Future<bool> launch(
6366 bool universalLinksOnly,
6467 Map <String , String > headers,
6568 Brightness statusBarBrightness,
69+ String webOnlyWindowName,
6670}) async {
6771 assert (urlString != null );
6872 final Uri url = Uri .parse (urlString.trimLeft ());
@@ -93,6 +97,7 @@ Future<bool> launch(
9397 enableDomStorage: enableDomStorage ?? false ,
9498 universalLinksOnly: universalLinksOnly ?? false ,
9599 headers: headers ?? < String , String > {},
100+ webOnlyWindowName: webOnlyWindowName,
96101 );
97102 assert (previousAutomaticSystemUiAdjustment != null );
98103 if (statusBarBrightness != null ) {
0 commit comments