switchCamera method

Future<void> switchCamera()

called when switch the camera

Implementation

Future<void> switchCamera() async {
  // TODO(amirh): remove this on when the invokeMethod update makes it to stable Flutter.
  await channel.invokeMethod('switchCamera', null);
}