openWithSystemBrowser method

  1. @override
Future<void> openWithSystemBrowser({
  1. required WebUri url,
})

This is a static method that opens an url in the system browser. You wont be able to use the PlatformInAppBrowser methods here!

Officially Supported Platforms/Implementations:

  • Android native WebView
  • iOS
  • MacOS
  • Windows

Implementation

@override
Future<void> openWithSystemBrowser({required WebUri url}) async {
  assert(url.toString().isNotEmpty);

  Map<String, dynamic> args = <String, dynamic>{};
  args.putIfAbsent('url', () => url.toString());
  return await _staticChannel.invokeMethod('openWithSystemBrowser', args);
}