openWithSystemBrowser method Null safety

Future<void> openWithSystemBrowser(
  1. {required Uri url}
)

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

Implementation

static Future<void> openWithSystemBrowser({required Uri url}) async {
  assert(url.toString().isNotEmpty);
  Map<String, dynamic> args = <String, dynamic>{};
  args.putIfAbsent('url', () => url.toString());
  return await _sharedChannel.invokeMethod('openWithSystemBrowser', args);
}