BatteryData class
Data class for battery measurements
Constructors
- BatteryData({required int level, required BatteryState state})
-
Creates a new battery data instance
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isCharging → bool
-
Whether the device is charging
no setter
- level → int
-
The current battery level (0-100)
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → BatteryState
-
The current battery state
final
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