isAppInstalled method

Future<bool> isAppInstalled(
  1. String packageName
)

Returns whether packageName is installed and visible to this app.

On Android 11 and later, the calling application's manifest must declare the package in a <queries> element for the result to be reliable.

Implementation

Future<bool> isAppInstalled(String packageName) {
  return DeviceAppsPlusPlatform.instance.isAppInstalled(packageName);
}