launchUrl method
Tells the browser to launch with url.
url - initial url.
headers (Supported only on Android) - whitelisted cross-origin request headers.
It is possible to attach non-whitelisted headers to cross-origin requests, when the server and client are related using a
digital asset link.
otherLikelyURLs - Other likely destinations, sorted in decreasing likelihood order.
referrer - referrer header. Supported only on Android.
Officially Supported Platforms/Implementations:
- Android
Implementation
Future<void> launchUrl({
required WebUri url,
Map<String, String>? headers,
List<WebUri>? otherLikelyURLs,
WebUri? referrer,
}) =>
platform.launchUrl(
url: url,
headers: headers,
otherLikelyURLs: otherLikelyURLs,
referrer: referrer);