BatteryState enum Sensor Data Source

Battery charging and operational states.

Describes the current state of the device battery.

See also:

  • Battery — Battery status information sensor data.
Inheritance
Available extensions

Values

unknown → const BatteryState

Battery state is unknown or could not be determined.

charging → const BatteryState

Battery is actively charging.

discharging → const BatteryState

Battery is discharging (in use and not plugged in for charging).

notCharging → const BatteryState

Battery is plugged in but not charging (may be maintaining a certain charge level).

full → const BatteryState

Battery is fully charged.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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<BatteryState>
A constant List of the values in this enum, in order of their declaration.