copyWith method

I18n copyWith({
  1. I18nPaintingEditor? paintEditor,
  2. I18nVarious? various,
  3. I18nLayerInteraction? layerInteraction,
  4. I18nTextEditor? textEditor,
  5. I18nFilterEditor? filterEditor,
  6. I18nBlurEditor? blurEditor,
  7. I18nEmojiEditor? emojiEditor,
  8. I18nStickerEditor? stickerEditor,
  9. I18nCropRotateEditor? cropRotateEditor,
  10. String? doneLoadingMsg,
  11. String? importStateHistoryMsg,
  12. String? cancel,
  13. String? undo,
  14. String? redo,
  15. String? done,
  16. String? remove,
})

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

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

Implementation

I18n copyWith({
  I18nPaintingEditor? paintEditor,
  I18nVarious? various,
  I18nLayerInteraction? layerInteraction,
  I18nTextEditor? textEditor,
  I18nFilterEditor? filterEditor,
  I18nBlurEditor? blurEditor,
  I18nEmojiEditor? emojiEditor,
  I18nStickerEditor? stickerEditor,
  I18nCropRotateEditor? cropRotateEditor,
  String? doneLoadingMsg,
  String? importStateHistoryMsg,
  String? cancel,
  String? undo,
  String? redo,
  String? done,
  String? remove,
}) {
  return I18n(
    paintEditor: paintEditor ?? this.paintEditor,
    various: various ?? this.various,
    layerInteraction: layerInteraction ?? this.layerInteraction,
    textEditor: textEditor ?? this.textEditor,
    filterEditor: filterEditor ?? this.filterEditor,
    blurEditor: blurEditor ?? this.blurEditor,
    emojiEditor: emojiEditor ?? this.emojiEditor,
    stickerEditor: stickerEditor ?? this.stickerEditor,
    cropRotateEditor: cropRotateEditor ?? this.cropRotateEditor,
    doneLoadingMsg: doneLoadingMsg ?? this.doneLoadingMsg,
    importStateHistoryMsg:
        importStateHistoryMsg ?? this.importStateHistoryMsg,
    cancel: cancel ?? this.cancel,
    undo: undo ?? this.undo,
    redo: redo ?? this.redo,
    done: done ?? this.done,
    remove: remove ?? this.remove,
  );
}