Activity class

A model representing the user's activity.

Constructors

Activity(ActivityType type, ActivityConfidence confidence)
Constructs an instance of Activity.
const

Properties

confidence ActivityConfidence
The confidence of activity recognized.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type ActivityType
The type of activity recognized.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns the data fields of Activity in JSON format.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

unknown Activity
Gets an activity of type UNKNOWN.
no setter