InstalledApps class

A utility class for interacting with installed apps on the device.

Constructors

InstalledApps.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

getAppInfo(String packageName) Future<AppInfo>
Retrieves information about an app with the specified package name.
getInstalledApps([bool excludeSystemApps = true, bool withIcon = false, String packageNamePrefix = ""]) Future<List<AppInfo>>
Retrieves a list of installed apps on the device.
isAppInstalled(String packageName) Future<bool?>
Checks if an app with the specified package name is installed on the device.
isSystemApp(String packageName) Future<bool?>
Checks if an app with the specified package name is a system app.
openSettings(String packageName) → dynamic
Opens the settings screen (App Info) of an app with the specified package name.
startApp(String packageName) Future<bool?>
Launches an app with the specified package name.
toast(String message, bool isShortLength) → dynamic
Displays a toast message on the device.
uninstallApp(String packageName) Future<bool?>
Uninstalls an app with the specified package name.