getSysBrightness static method
Get the system interface brightness. The iOS system has the same interface brightness, while there may be differences in Android. Range: 0.0 ~ 1.0. 获取系统界面亮度,IOS系统与界面亮度一致,安卓可能会有差异 范围:0.0 ~ 1.0
Implementation
static Future<double?> getSysBrightness() async {
DoubleMsg doubleMsg = await _nativeAPI.getSysBrightness();
return doubleMsg.value;
}