FlutterEcoMode class
An implementation of FlutterEcoModePlatform that uses pigeon.
- Inheritance
-
- Object
- PlatformInterface
- FlutterEcoModePlatform
- FlutterEcoMode
Constructors
- FlutterEcoMode.new({EcoModeApi? api, EventChannel? batteryLevelEventChannel, EventChannel? batteryStatusEventChannel, EventChannel? batteryModeEventChannel})
Properties
-
batteryLevelEventStream
→ Stream<
double> -
Return a stream of battery level.
no setteroverride
-
batteryStateEventStream
→ Stream<
BatteryState> -
Return a stream of battery state.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
-
isBatteryEcoModeStream
→ Stream<
bool?> -
Return a stream is battery eco mode.
no setteroverride
-
lowPowerModeEventStream
→ Stream<
bool> -
Return a stream of battery save mode change.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void -
getBatteryLevel(
) → Future< double?> -
Return the current battery level.
override
-
getBatteryState(
) → Future< BatteryState> -
Return the current battery state.
override
-
getDeviceRange(
) → Future< DeviceRange?> -
Return the eco range.
override
-
getFreeMemory(
) → Future< int> -
Return the available RAM.
override
-
getFreeStorage(
) → Future< int> -
Return the available disk space.
override
-
getPlatformInfo(
) → Future< String?> -
Return the current platform info.
override
-
getProcessorCount(
) → Future< int?> -
Return the number of core.
override
-
getThermalState(
) → Future< ThermalState> -
Return the current thermal state.
override
-
getTotalMemory(
) → Future< int?> -
Return the total RAM.
override
-
getTotalStorage(
) → Future< int> -
Return the total disk space.
override
-
isBatteryEcoMode(
) → Future< bool?> -
Return if the battery is in eco mode.
override
-
isBatteryInLowPowerMode(
) → Future< bool> -
Return the current battery save mode.
override
-
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