ProbeState enum Null safety

The state of a Probe.

The runtime state has the following state machine:

+----------------------------------------------------------------+ +-----------+ | +---------+ +-------------+ +---------+ +--------+ | -> | undefined | | | created | -> | initialized | -> | resumed | <-> | paused | | +-----------+ | +---------+ +-------------+ +---------+ +--------+ | -> | stopped | +----------------------------------------------------------------+ +-----------+

Constants

created → const ProbeState

Created and ready to be initialized.

const ProbeState(0)
initialized → const ProbeState

Initialized and ready to be resumed (i.e., started).

const ProbeState(1)
paused → const ProbeState

Paused and not collecting data.

const ProbeState(3)
resumed → const ProbeState

Resumed and active in data collection.

const ProbeState(2)
stopped → const ProbeState

Stopped and can no longer collect data.

const ProbeState(4)
undefined → const ProbeState

Undefined state.

Typically the probe becomes undefined if it cannot be initialized or if this probe is not supported on the specific phone / OS.

const ProbeState(5)
values → const List<ProbeState>

A constant List of the values in this enum, in order of their declaration.

const List<ProbeState>

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

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