FlutterEcoModePlatform class abstract
The interface that implementations of flutter_eco_mode must implement.
- Inheritance
-
- Object
- PlatformInterface
- FlutterEcoModePlatform
- Implementers
Constructors
- FlutterEcoModePlatform()
- Constructs a FlutterEcoModePlatform.
Properties
-
batteryLevelEventStream
→ Stream<
double> -
Return a stream of battery level.
no setter
-
batteryStateEventStream
→ Stream<
BatteryState> -
Return a stream of battery state.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
isBatteryEcoModeStream
→ Stream<
bool?> -
Return a stream is battery eco mode.
no setter
-
lowPowerModeEventStream
→ Stream<
bool> -
Return a stream of battery save mode change.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getBatteryLevel(
) → Future< double?> - Return the current battery level.
-
getBatteryState(
) → Future< BatteryState> - Return the current battery state.
-
getDeviceRange(
) → Future< DeviceRange?> - Return the eco range.
-
getFreeMemory(
) → Future< int?> - Return the available RAM.
-
getFreeStorage(
) → Future< int?> - Return the available disk space.
-
getPlatformInfo(
) → Future< String?> - Return the current platform info.
-
getProcessorCount(
) → Future< int?> - Return the number of core.
-
getThermalState(
) → Future< ThermalState> - Return the current thermal state.
-
getTotalMemory(
) → Future< int?> - Return the total RAM.
-
getTotalStorage(
) → Future< int?> - Return the total disk space.
-
isBatteryEcoMode(
) → Future< bool?> - Return if the battery is in eco mode.
-
isBatteryInLowPowerMode(
) → Future< bool?> - Return the current battery save mode.
-
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
Static Properties
- instance ↔ FlutterEcoModePlatform
-
The default instance of FlutterEcoModePlatform to use.
getter/setter pair