EcoModeApi class
Constructors
- EcoModeApi({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''})
-
Constructor for EcoModeApi. The
binaryMessenger
named argument is available for dependency injection. If it is left null, the default BinaryMessenger will be used which routes to the host platform.
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
-
getBatteryLevel(
) → Future< double> -
getBatteryState(
) → Future< BatteryState> -
getEcoScore(
) → Future< double?> -
getFreeMemory(
) → Future< int> -
getFreeStorage(
) → Future< int> -
getPlatformInfo(
) → Future< String> -
getProcessorCount(
) → Future< int> -
getThermalState(
) → Future< ThermalState> -
getTotalMemory(
) → Future< int> -
getTotalStorage(
) → Future< int> -
isBatteryInLowPowerMode(
) → Future< bool> -
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
-
pigeonChannelCodec
→ const MessageCodec<
Object?>