App class

An application installed on the device. Depending on the Android version, some attributes may not be available.

Annotations
  • @JsonSerializable(fieldRename: FieldRename.none, includeIfNull: false)

Constructors

App({String? packageName, String? appName, String? apkFilePath, String? versionName, int? versionCode, String? dataDir, bool? systemApp, int? installTimeMillis, int? updateTimeMillis, String? category, bool? enabled})
App.fromApplication(Application application)
App.fromJson(Map<String, dynamic> json)
factory

Properties

apkFilePath String?
Full path to the base APK for this application.
getter/setter pair
appName String?
Displayable name of the application.
getter/setter pair
category String?
The category of this application. The information may come from the application itself or the system.
getter/setter pair
dataDir String?
Full path to the default directory assigned to the package for its persistent data.
getter/setter pair
enabled bool?
Whether the app is enabled (installed and visible) or disabled (installed, but not visible).
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
installTimeMillis int?
The time at which the app was first installed in milliseconds.
getter/setter pair
packageName String?
Name of the package.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
systemApp bool?
Whether the application is installed in the device's system image An application downloaded by the user won't be a system app.
getter/setter pair
updateTimeMillis int?
The time at which the app was last updated in milliseconds.
getter/setter pair
versionCode int?
Unique version id for the application.
getter/setter pair
versionName String?
Public name of the application (e.g., 1.0.0). The version name of this package, as specified by the
getter/setter pair

Methods

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

Operators

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