isAppInstalled static method

Future<bool> isAppInstalled(
  1. String schema
)

returns true if an app schema is installed on the device other wise returns false

Android only

returns false on other platforms

Implementation

static Future<bool> isAppInstalled(String schema) async {
  if (!Platform.isAndroid) {
    return false;
  }

  return _channel.invokeMethod<bool>('isAppInstalled', <String, String>{
    'appSchema': schema
  }).then<bool>((bool? value) => value ?? false);
}