Activity class Null safety

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.
read-onlyoverride
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
type ActivityType
The type of activity recognized.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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.
read-only