copyWith method

I18nVarious copyWith({
  1. String? loadingDialogMsg,
  2. String? closeEditorWarningTitle,
  3. String? closeEditorWarningMessage,
  4. String? closeEditorWarningConfirmBtn,
  5. String? closeEditorWarningCancelBtn,
})

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

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

Implementation

I18nVarious copyWith({
  String? loadingDialogMsg,
  String? closeEditorWarningTitle,
  String? closeEditorWarningMessage,
  String? closeEditorWarningConfirmBtn,
  String? closeEditorWarningCancelBtn,
}) {
  return I18nVarious(
    loadingDialogMsg: loadingDialogMsg ?? this.loadingDialogMsg,
    closeEditorWarningTitle:
        closeEditorWarningTitle ?? this.closeEditorWarningTitle,
    closeEditorWarningMessage:
        closeEditorWarningMessage ?? this.closeEditorWarningMessage,
    closeEditorWarningConfirmBtn:
        closeEditorWarningConfirmBtn ?? this.closeEditorWarningConfirmBtn,
    closeEditorWarningCancelBtn:
        closeEditorWarningCancelBtn ?? this.closeEditorWarningCancelBtn,
  );
}