switchCamera method

Future<void> switchCamera()

Switches between front and back camera.

This method toggles the camera between front-facing and back-facing modes. It delegates to the effective controller's switchCamera method. Returns a Future that completes when the camera has been switched.

Implementation

Future<void> switchCamera() {
  return _effectiveController.switchCamera();
}