isInstalled method

Future<bool> isInstalled(
  1. String packageName, {
  2. bool debug = false,
})

Check if the package with the given packageName is installed.

Implementation

Future<bool> isInstalled(String packageName, {bool debug = false}) async {
  return path(packageName, debug: debug).then((value) => value.isNotEmpty).catchError((_) => false);
}