setFlash method

Future<void> setFlash(
  1. bool flash
)

闪光灯开关

flash 是否打开闪光灯 true:打开 false:关闭

Implementation

Future<void> setFlash(bool flash) async {
  return _livePusherMethodChannel.invokeMethod(
    'setFlash',
    wrapArgs(arg: boolToString(flash)),
  );
}