ScreenBrightness class

Plugin for changing screen brightness

Constructors

ScreenBrightness.new()
Returns a singleton instance of ScreenBrightness.
factory

Properties

application Future<double>
Returns application screen brightness value.
no setter
canChangeSystemBrightness Future<bool>
Return can change system screen brightness
no setter
current Future<double>
Returns application screen brightness value.
no setter
hasApplicationScreenBrightnessChanged Future<bool>
Returns boolean to identify application screen brightness has changed by this plugin.
no setter
hasChanged Future<bool>
Returns boolean to identify application screen brightness has changed by this plugin.
no setter
hashCode int
The hash code for this object.
no setterinherited
isAnimate Future<bool>
Returns boolean to identify will animate when application screen brightness changed.
no setter
isAutoReset Future<bool>
Returns boolean to identify will auto reset to system brightness when application lifecycle changed.
no setter
onApplicationScreenBrightnessChanged Stream<double>
Returns stream with application screen brightness changes including ScreenBrightness.setApplicationScreenBrightness, ScreenBrightness.resetApplicationScreenBrightness, system control center or system setting.
no setter
onCurrentBrightnessChanged Stream<double>
Returns stream with application screen brightness changes including ScreenBrightness.setApplicationScreenBrightness, ScreenBrightness.resetApplicationScreenBrightness, system control center or system setting.
no setter
onSystemScreenBrightnessChanged Stream<double>
Returns stream with system screen brightness changes including ScreenBrightness.setSystemScreenBrightness, system control center or system setting.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
system Future<double>
Returns system screen brightness.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resetApplicationScreenBrightness() Future<void>
Reset application screen brightness with (Android) -1 or (iOS)system brightness value.
resetScreenBrightness() Future<void>
Reset application screen brightness with (Android) -1 or (iOS)system brightness value.
setAnimate(bool isAnimate) Future<void>
Set will animate when application screen brightness changed.
setApplicationScreenBrightness(double brightness) Future<void>
Set application screen brightness with double value.
setAutoReset(bool isAutoReset) Future<void>
Set auto reset when application lifecycle changed
setScreenBrightness(double brightness) Future<void>
Set application screen brightness with double value.
setSystemScreenBrightness(double brightness) Future<void>
Set system screen brightness with double value.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance ScreenBrightness
Returns a singleton instance of ScreenBrightness.
no setter