copyWith method
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,
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,
);
}