isInstalled method
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);
}