open method
Future<void>
open({
- WebUri? url,
- Map<
String, String> ? headers, - List<
WebUri> ? otherLikelyURLs, - WebUri? referrer,
- @Deprecated('Use settings instead') ChromeSafariBrowserClassOptions? options,
- ChromeSafariBrowserSettings? settings,
Opens the PlatformChromeSafariBrowser instance with an url
.
url
- The url
to load. On iOS, the url
is required and must use the http
or https
scheme.
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. Supported only on Android.
referrer
- referrer header. Supported only on Android.
options
- Deprecated. Use settings
instead.
settings
- Settings for the PlatformChromeSafariBrowser.
Officially Supported Platforms/Implementations:
- Android
- iOS
Implementation
Future<void> open(
{WebUri? url,
Map<String, String>? headers,
List<WebUri>? otherLikelyURLs,
WebUri? referrer,
@Deprecated('Use settings instead')
// ignore: deprecated_member_use_from_same_package
ChromeSafariBrowserClassOptions? options,
ChromeSafariBrowserSettings? settings}) {
this.platform.eventHandler = this;
return platform.open(
url: url,
headers: headers,
otherLikelyURLs: otherLikelyURLs,
options: options,
settings: settings);
}