copyWith method

ImageEditorIcons copyWith({
  1. IconData? closeEditor,
  2. IconData? doneIcon,
  3. IconData? backButton,
  4. IconData? applyChanges,
  5. IconData? undoAction,
  6. IconData? redoAction,
  7. IconData? removeElementZone,
  8. IconsPaintingEditor? paintingEditor,
  9. IconsTextEditor? textEditor,
  10. IconsCropRotateEditor? cropRotateEditor,
  11. IconsFilterEditor? filterEditor,
  12. IconsTuneEditor? tuneEditor,
  13. IconsBlurEditor? blurEditor,
  14. IconsEmojiEditor? emojiEditor,
  15. IconsStickerEditor? stickerEditor,
  16. IconsLayerInteraction? layerInteraction,
})

Creates a copy of this ImageEditorIcons object with the given fields replaced with new values.

The copyWith method allows you to create a new instance of ImageEditorIcons with some properties updated while keeping the others unchanged.

Implementation

ImageEditorIcons copyWith({
  IconData? closeEditor,
  IconData? doneIcon,
  IconData? backButton,
  IconData? applyChanges,
  IconData? undoAction,
  IconData? redoAction,
  IconData? removeElementZone,
  IconsPaintingEditor? paintingEditor,
  IconsTextEditor? textEditor,
  IconsCropRotateEditor? cropRotateEditor,
  IconsFilterEditor? filterEditor,
  IconsTuneEditor? tuneEditor,
  IconsBlurEditor? blurEditor,
  IconsEmojiEditor? emojiEditor,
  IconsStickerEditor? stickerEditor,
  IconsLayerInteraction? layerInteraction,
}) {
  return ImageEditorIcons(
    closeEditor: closeEditor ?? this.closeEditor,
    doneIcon: doneIcon ?? this.doneIcon,
    backButton: backButton ?? this.backButton,
    applyChanges: applyChanges ?? this.applyChanges,
    undoAction: undoAction ?? this.undoAction,
    redoAction: redoAction ?? this.redoAction,
    removeElementZone: removeElementZone ?? this.removeElementZone,
    paintingEditor: paintingEditor ?? this.paintingEditor,
    textEditor: textEditor ?? this.textEditor,
    cropRotateEditor: cropRotateEditor ?? this.cropRotateEditor,
    filterEditor: filterEditor ?? this.filterEditor,
    tuneEditor: tuneEditor ?? this.tuneEditor,
    blurEditor: blurEditor ?? this.blurEditor,
    emojiEditor: emojiEditor ?? this.emojiEditor,
    stickerEditor: stickerEditor ?? this.stickerEditor,
    layerInteraction: layerInteraction ?? this.layerInteraction,
  );
}