setCameraTorchOn method Null safety
- bool on
Turn on or off the camera torch
Implementation
Future<int> setCameraTorchOn(bool on) async {
IntValue reply = await _api.setCameraTorchOn(BoolValue()..value = on);
return reply.value ?? -1;
}
Turn on or off the camera torch
Future<int> setCameraTorchOn(bool on) async {
IntValue reply = await _api.setCameraTorchOn(BoolValue()..value = on);
return reply.value ?? -1;
}