setFlashMode method
打开/关闭 闪光灯 Turn flash on / off
Implementation
Future<bool> setFlashMode(FlashState status) async {
if (!_supportPlatform || cameraOptions.value == null) return false;
assert(_isInitialize, 'Call initialize first');
final bool? state =
await _channel.invokeMethod<bool?>('setFlashMode', status.index);
return state ?? false;
}