AppInfo class

A class that represents an app.

This class is used to store information about an application on the device.

The appName is the name of the app. The packageName is the package name of the app. The isSystemApp is whether the app is a system app. The icon is the icon of the app as bytes.

Constructors

AppInfo({required String appName, required String packageName, required bool isSystemApp, List<int>? icon})
Constructor for the AppInfo class.
const
AppInfo.fromJson(Map<String, dynamic> json)
Create a new AppInfo object from a JSON object.
factory

Properties

appName String
The name of the app.
final
hashCode int
The hash code for this object.
no setteroverride
icon List<int>?
The icon of the app as bytes.
final
isSystemApp bool
Whether the app is a system app.
final
packageName String
The package name of the app.
final
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
toJson() Map<String, dynamic>
Create a JSON object from an AppInfo object.
toString() String
A string representation of this object.
override

Operators

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

Static Methods

fromJsonList(List jsonList) List<AppInfo>
Create a list of AppInfo objects from a list of JSON objects.