canLaunch method
Returns true
if this platform is able to launch url
.
Implementation
@override
Future<bool> canLaunch(String url) async {
final UrlLauncherBoolResult result = await _hostApi.canLaunchUrl(url);
switch (result.error) {
case UrlLauncherError.invalidUrl:
throw _getInvalidUrlException(url);
case null:
}
return result.value;
}