flipCamera method

Future<CameraFacing> flipCamera()

Flips the camera between available modes

Implementation

Future<CameraFacing> flipCamera() async {
  try {
    return CameraFacing
        .values[await _channel.invokeMethod('flipCamera') as int];
  } on PlatformException catch (e) {
    throw CameraException(e.code, e.message);
  }
}