Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
add async to canLaunch
  • Loading branch information
szakarias committed Apr 28, 2017
commit 924c2a91d69c89d19245c97ade8053f6b4ba912f
4 changes: 2 additions & 2 deletions packages/url-launcher/lib/url_launcher.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ Future<Null> launch(String urlString) {

/// Checks whether the specified URL can be handled by some app installed on the
/// device.
Future<bool> canLaunch(String urlString) {
Future<bool> canLaunch(String urlString) async {
if (urlString == null)
return false;
return _channel.invokeMethod(
return await _channel.invokeMethod(
'canLaunch',
urlString,
);
Expand Down