ScreenBrightnessProPlatform class abstract

Inheritance
  • Object
  • PlatformInterface
  • ScreenBrightnessProPlatform
Implementers

Constructors

ScreenBrightnessProPlatform()
Constructs a ScreenBrightnessProPlatform.

Properties

hashCode int
The hash code for this object.
no setterinherited
onBrightnessChanged Stream<double>
Stream of brightness changes from the system.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getBatteryLevel() Future<double>
Returns the current battery level as a value between 0.0 and 1.0.
getBrightness() Future<double?>
Returns the current screen brightness as a value between 0.0 and 1.0.
hasWriteSettingsPermission() Future<bool>
Checks if the app has permission to write system settings (Android only).
isAutoModeEnabled() Future<bool>
Checks if auto-brightness (automatic mode) is enabled.
isLowPowerModeEnabled() Future<bool>
Checks if the device is currently in low power mode (battery saver).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestWriteSettingsPermission() Future<void>
Requests permission to write system settings (Android only).
resetBrightness() Future<void>
Resets the screen brightness to the system default.
setAutoMode(bool enabled) Future<void>
Sets the auto-brightness mode.
setBrightness(double brightness) Future<void>
Sets the screen brightness. brightness must be between 0.0 and 1.0.
setKeepScreenOn(bool enabled) Future<void>
Controls whether the screen should stay on (prevent sleeping).
setSystemBrightness(double brightness) Future<void>
Sets the global system brightness.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance ScreenBrightnessProPlatform
The default instance of ScreenBrightnessProPlatform to use.
getter/setter pair