BatteryInfoPlugin class

Plugin for accessing the battery information of the device

Constructors

BatteryInfoPlugin()

Properties

androidBatteryInfo Future<AndroidBatteryInfo?>
Returns the battery info as a single API call
no setter
androidBatteryInfoStream Stream<AndroidBatteryInfo?>
Returns a stream of BatteryInfo data that is pushed out to the subscribers on updates
no setter
hashCode int
The hash code for this object.
no setterinherited
iosBatteryInfo Future<IosBatteryInfo?>
Returns the battery info as a single API call
no setter
iosBatteryInfoStream Stream<IosBatteryInfo?>
Returns a stream of IsoBatteryInfo data that is pushed out to the subscribers on updates
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

methodChannel → const MethodChannel
streamChannel → const EventChannel