getCurrentBrightness method
Implementation
Future<void> getCurrentBrightness() async {
if (!desktopOrWeb && manageBrightness) {
try {
_currentBrightness.value = await ScreenBrightness().current;
} catch (e) {
customDebugPrint(e);
throw 'Failed to get current brightness';
//return 0;
}
}
//return 0;
}