switchCamera method Null safety

Future<int> switchCamera()

Switch the camera

Implementation

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