AppUsageInfo class

The usage of a single app, as listed in AppUsage.

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)
Creates an AppUsageInfo from the app_usage plugin's usage 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
The last time the app was in the 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 interval from startDate to endDate.
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