setBrightness static method

Future<void> setBrightness(
  1. double brightness
)

Adjusting the brightness of the current interface 修改当前界面亮度

Implementation

static Future<void> setBrightness(double brightness) async {
  return await _nativeAPI.setBrightness(DoubleMsg()..value = brightness);
}