AppInfo class

Information about an installed app.

Constructors

AppInfo({required String name, required Uint8List? icon, required String packageName, required String versionName, required int versionCode, required PlatformType platformType, required int installedTimestamp, required bool isSystemApp, required bool isLaunchableApp, required AppCategory category})
const
AppInfo.create(dynamic data)
factory

Properties

category → AppCategory
Store category. AppCategory.undefined below Android 8.0 or when not declared.
final
hashCode → int
The hash code for this object.
no setteroverride
icon → Uint8List?
PNG bytes of the app icon, or null when icons were not requested or could not be loaded.
final
installedTimestamp → int
Last update time in milliseconds since epoch.
final
isLaunchableApp → bool
Whether the app has a launcher activity and can be started.
final
isSystemApp → bool
Whether the app is part of the system image.
final
name → String
Display name of the app.
final
packageName → String
Unique package name (application id), for example com.example.app.
final
platformType → PlatformType
Framework the app is built with (detected heuristically).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
versionCode → int
Internal version number of the app.
final
versionName → String
Human readable version, for example 1.2.3.
final

Methods

copyWith({String? name, Uint8List? icon, String? packageName, String? versionName, int? versionCode, PlatformType? platformType, int? installedTimestamp, bool? isSystemApp, bool? isLaunchableApp, AppCategory? category}) → AppInfo
getVersionInfo() → String
Version as versionName (versionCode).
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.
override

Static Methods

parseList(dynamic apps) → List<AppInfo>
Parses a list returned by the native side, skipping invalid entries. Sorted by name.