resetBrightness method

Future<void> resetBrightness()

Implementation

Future<void> resetBrightness() async {
  if (!manageBrightness) {
    return;
  }
  if (!desktopOrWeb) {
    try {
      await ScreenBrightness().resetScreenBrightness();
    } catch (e) {
      customDebugPrint(e);
      throw 'Failed to reset brightness';
    }
  }
}