MethodChannelScreenBrightness class

Implementation of screen brightness platform interface

Inheritance

Properties

current → Future<double>
Returns current screen brightness which is current screen brightness value.
no setteroverride
hasChanged → Future<bool>
Returns boolean to identify brightness has changed with this plugin.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
isAnimate → Future<bool>
Returns boolean to identify will animate brightness transition
no setteroverride
isAutoReset → Future<bool>
Returns boolean to identify will auto reset when application lifecycle changed.
no setteroverride
onCurrentBrightnessChanged → Stream<double>
Returns stream with screen brightness changes including ScreenBrightness.setScreenBrightness, ScreenBrightness.resetScreenBrightness, system control center or system setting.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
system → Future<double>
Returns system screen brightness which is set when application is started.
no setteroverride

Methods

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

Operators

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