App class

An app installed on the device, as listed in Apps.

Depending on the Android version, some attributes may not be available.

Annotations
  • @JsonSerializable.new(includeIfNull: false, explicitToJson: true)

Constructors

App({String? name, String? packageName, String? versionName, int? versionCode, int? installTimeMillis})
App.fromAppInfo(AppInfo app)
Creates an App from an AppInfo object from the installed_apps plugin.
App.fromJson(Map<String, dynamic> json)
factory

Properties

framework ↔ String?
The framework the app was built with. One of:
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
installTimeMillis ↔ int?
The time the app was first installed, in milliseconds since epoch.
getter/setter pair
name ↔ String?
Displayable name of the application.
getter/setter pair
packageName ↔ String?
The name of the application package.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
versionCode ↔ int?
Unique version id for the application.
getter/setter pair
versionName ↔ String?
Public version name of the application (e.g., 1.0.0), as specified by the manifest tag's versionName attribute.
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