AppUsageData class
Constructors
-
AppUsageData({String? packageName, String? appLabel, DateTime? installTime, String? icon, List<
Usages> ? usages}) -
AppUsageData.fromJson(Map<
String, dynamic> json) - Constructor to initialize the object from a JSON map.
Properties
- appLabel ↔ String?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon ↔ String?
-
getter/setter pair
- iconWidget → Widget
-
A getter to build and return the app icon as a Widget.
no setter
- installTime ↔ DateTime?
-
getter/setter pair
- memoryIcon ↔ Uint8List?
-
getter/setter pair
- packageName ↔ String?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- totalUsage → int
-
Calculate total usage time in foreground.
no setter
-
usages
↔ List<
Usages> ? -
getter/setter pair
Methods
-
buildAppIcon(
{double size = 40}) → Widget - Helper to build an app icon Widget from the memoryIcon.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Convert the object to a JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited