setCameraTorchOn method

Future<int> setCameraTorchOn(
  1. bool on
)

开启或关闭闪光灯

Implementation

Future<int> setCameraTorchOn(bool on) async {
  IntValue reply = await _api.setCameraTorchOn(BoolValue()..value = on);
  return reply.value ?? -1;
}