setCameraTorchOn method Null safety

Future<int> setCameraTorchOn(
  1. 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;
}