isAppInstalled static method

Future<bool> isAppInstalled(
  1. String uri
)

Check if an app is installed with the given uri scheme.

Returns true if the app is installed and false if the app is not installed.

Implementation

static Future<bool> isAppInstalled(String uri) async {
  try {
    await checkAvailability(uri);
    return true;
  } catch (_) {
    return false;
  }
}