PackageInfo class

Represents information of specific package.

Constructors

PackageInfo({required String packageId, required String label, required PackageType packageType, String? iconPath, required String version, required StorageType installedStorageType, required bool isSystem, required bool isPreloaded, required bool isRemovable})
Creates an instance of PackageInfo with the given parameters.

Properties

hashCode int
The hash code for this object.
no setterinherited
iconPath String?
The path to the icon image.
final
installedStorageType StorageType
Installed storage type for the package.
final
isPreloaded bool
Whether the package is a preloaded package.
final
isRemovable bool
Whether the package is a removable package.
final
isSystem bool
Whether the package is a system package.
final
label String
Label of the package.
final
packageId String
The package ID.
final
packageType PackageType
Type of the package.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
version String
Version of the package.
final

Methods

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

Operators

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

Static Methods

fromMap(dynamic map) PackageInfo
Creates an instance of PackageInfo from the map.