setBrightness method
set brightness correction manually range 0,1
(optionnal)
Implementation
setBrightness(double brightness) {
if (brightness < 0 || brightness > 1) {
throw "Brightness value must be between 0 and 1";
}
// The stream will debounce before actually setting the brightness
_brightnessController.sink.add(brightness);
}