canLaunch function Null safety

Future<bool> canLaunch(
  1. String urlString
)

Checks whether the specified URL can be handled by some app installed on the device.

On some systems, such as recent versions of Android and iOS, this will always return false unless the application has been configuration to allow querying the system for launch support. See the README for details.

Implementation

Future<bool> canLaunch(String urlString) async {
  return await UrlLauncherPlatform.instance.canLaunch(urlString);
}