copyWith method
ImageEditorCustomWidgets
copyWith({
- CustomWidgetsMainEditor? mainEditor,
- CustomWidgetsPaintEditor? paintEditor,
- CustomWidgetsTextEditor? textEditor,
- CustomWidgetsCropRotateEditor? cropRotateEditor,
- CustomWidgetsFilterEditor? filterEditor,
- CustomWidgetsTuneEditor? tuneEditor,
- CustomWidgetsBlurEditor? blurEditor,
- Widget loadingDialog(
- String message,
- ProImageEditorConfigs configs
- Widget? circularProgressIndicator,
- CustomWidgetsLayerInteraction? layerInteraction,
Creates a copy of this ImageEditorCustomWidgets
object with the given
fields replaced with new values.
The copyWith method allows you to create a new instance of ImageEditorCustomWidgets with some properties updated while keeping the others unchanged.
Implementation
ImageEditorCustomWidgets copyWith({
CustomWidgetsMainEditor? mainEditor,
CustomWidgetsPaintEditor? paintEditor,
CustomWidgetsTextEditor? textEditor,
CustomWidgetsCropRotateEditor? cropRotateEditor,
CustomWidgetsFilterEditor? filterEditor,
CustomWidgetsTuneEditor? tuneEditor,
CustomWidgetsBlurEditor? blurEditor,
Widget Function(String message, ProImageEditorConfigs configs)?
loadingDialog,
Widget? circularProgressIndicator,
CustomWidgetsLayerInteraction? layerInteraction,
}) {
return ImageEditorCustomWidgets(
mainEditor: mainEditor ?? this.mainEditor,
paintEditor: paintEditor ?? this.paintEditor,
textEditor: textEditor ?? this.textEditor,
cropRotateEditor: cropRotateEditor ?? this.cropRotateEditor,
filterEditor: filterEditor ?? this.filterEditor,
tuneEditor: tuneEditor ?? this.tuneEditor,
blurEditor: blurEditor ?? this.blurEditor,
loadingDialog: loadingDialog ?? this.loadingDialog,
circularProgressIndicator:
circularProgressIndicator ?? this.circularProgressIndicator,
layerInteraction: layerInteraction ?? this.layerInteraction,
);
}