getBrightness static method
Getting the current brightness of the interface, which ranges from 0.0 to 1.0 获得当前界面亮度 0.0 ~ 1.0
Implementation
static Future<double?> getBrightness() async {
DoubleMsg doubleMsg = await _nativeAPI.getBrightness();
return doubleMsg.value;
}