BatteryController class

Manages battery-related information and operations.

Constructors

BatteryController()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getBattery() Future<BatteryState>
Retrieves the current battery state, including level, temperature, and charging status.
listen(void callback(BatteryState)) StreamSubscription
Listens to battery state changes.
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