Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Main code of interest in package:url_launcher
const MethodChannel _channel = MethodChannel('plugins.flutter.io/url_launcher');
Future<bool> launch(
String urlString, {
...
}) async {
assert(urlString != null);
final bool result = await _channel.invokeMethod<bool>(
'launch',
<String, Object>{
'url': urlString,
...
},
);
...
return result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.