copyWith method

FaceDetectionConfig copyWith({
  1. String? message,
  2. TextStyle? messageStyle,
  3. bool? showControls,
  4. bool? showCaptureControl,
  5. bool? showFlashControl,
  6. bool? showCameraLensControl,
  7. bool? showStatusMessage,
  8. IndicatorShape? indicatorShape,
  9. bool? autoDisableCaptureControl,
  10. bool? autoCapture,
  11. ImageResolution? imageResolution,
  12. CameraFlashMode? defaultFlashMode,
  13. CameraOrientation? orientation,
  14. FaceDetectorMode? performanceMode,
  15. AccuracyConfig? accuracyConfig,
})

Implementation

FaceDetectionConfig copyWith({
  String? message,
  TextStyle? messageStyle,
  bool? showControls,
  bool? showCaptureControl,
  bool? showFlashControl,
  bool? showCameraLensControl,
  bool? showStatusMessage,
  IndicatorShape? indicatorShape,
  bool? autoDisableCaptureControl,
  bool? autoCapture,
  ImageResolution? imageResolution,
  CameraFlashMode? defaultFlashMode,
  CameraOrientation? orientation,
  FaceDetectorMode? performanceMode,
  AccuracyConfig? accuracyConfig,
}) {
  return FaceDetectionConfig(
    message: message ?? this.message,
    messageStyle: messageStyle ?? this.messageStyle,
    showControls: showControls ?? this.showControls,
    showCaptureControl: showCaptureControl ?? this.showCaptureControl,
    showFlashControl: showFlashControl ?? this.showFlashControl,
    showCameraLensControl:
        showCameraLensControl ?? this.showCameraLensControl,
    showStatusMessage: showStatusMessage ?? this.showStatusMessage,
    indicatorShape: indicatorShape ?? this.indicatorShape,
    autoDisableCaptureControl:
        autoDisableCaptureControl ?? this.autoDisableCaptureControl,
    autoCapture: autoCapture ?? this.autoCapture,
    imageResolution: imageResolution ?? this.imageResolution,
    defaultFlashMode: defaultFlashMode ?? this.defaultFlashMode,
    orientation: orientation ?? this.orientation,
    performanceMode: performanceMode ?? this.performanceMode,
    accuracyConfig: accuracyConfig ?? this.accuracyConfig,
  );
}