ActivityType enum Null safety

Defines the type of activity.

Inheritance

Constructors

ActivityType()
const

Values

IN_VEHICLE → const ActivityType

The device is in a vehicle, such as a car.

const ActivityType(0)
ON_BICYCLE → const ActivityType

The device is on a bicycle.

const ActivityType(1)
RUNNING → const ActivityType

The device is on a user who is running. This is a sub-activity of ON_FOOT.

const ActivityType(2)
STILL → const ActivityType

The device is still (not moving).

const ActivityType(3)
WALKING → const ActivityType

The device is on a user who is walking. This is a sub-activity of ON_FOOT.

const ActivityType(4)
UNKNOWN → const ActivityType

Unable to detect the current activity.

const ActivityType(5)

Properties

hashCode int
The hash code for this object.
read-onlyinherited
index int
A numeric identifier for the enumerated value.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

values → const List<ActivityType>
A constant List of the values in this enum, in order of their declaration.
[IN_VEHICLE, ON_BICYCLE, RUNNING, STILL, WALKING, UNKNOWN]