AppInfo class

Metadata about an installed application, resolved via PackageManager.

Returned by UsageStats.getAppInfo and UsageStats.queryInstalledApps. Use UsageStats.getAppIcon to fetch the launcher icon separately.

Constructors

AppInfo({required String packageName, String? appName, required bool isSystemApp, required bool enabled, String? versionName, required int versionCode, DateTime? firstInstallTime, DateTime? lastUpdateTime})
Creates an AppInfo. Usually constructed via AppInfo.fromMap.
AppInfo.fromMap(Map map)
Builds an AppInfo from a platform-channel map.
factory

Properties

appName String?
The user-visible application label, if it could be resolved.
final
enabled bool
Whether the app is currently enabled.
final
firstInstallTime DateTime?
When the app was first installed.
final
hashCode int
The hash code for this object.
no setterinherited
isSystemApp bool
Whether the app is part of the system image.
final
lastUpdateTime DateTime?
When the app was last updated.
final
packageName String
The application's package name.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
versionCode int
The app's numeric version code.
final
versionName String?
The app's versionName, if available.
final

Methods

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

Operators

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