CameraDesktopPlugin constructor

CameraDesktopPlugin({
  1. @visibleForTesting MethodChannel? channel,
  2. bool mirrorPreview = true,
})

Creates a new CameraDesktopPlugin.

The channel parameter is exposed for testing only.

Implementation

CameraDesktopPlugin({
  @visibleForTesting MethodChannel? channel,
  this.mirrorPreview = true,
}) : _channel =
         channel ?? const MethodChannel('plugins.flutter.io/camera_desktop');