AppUsageInfo class

Holds information about usage for a specific app.

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

Constructors

AppUsageInfo(String name, String packageName, Duration usage, DateTime startDate, DateTime endDate, DateTime lastForeground)
AppUsageInfo.fromAppUsageInfo(AppUsageInfo info)
AppUsageInfo.fromJson(Map<String, dynamic> json)
factory

Properties

endDate ↔ DateTime
The end of the interval
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
lastForeground ↔ DateTime
Last time app was in foreground
getter/setter pair
name ↔ String
The name of the application
getter/setter pair
packageName ↔ String
The full name of the application package
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
startDate ↔ DateTime
The start of the interval
getter/setter pair
usage ↔ Duration
The amount of time the application has been used in the specified interval
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