AppUsageInfo class

Holds information about usage for a specific app.

Annotations
  • @JsonSerializable(fieldRename: FieldRename.none, includeIfNull: false)

Constructors

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

Properties

appName String
The name of the application
getter/setter pair
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
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