copyWith method

RegistrationTranslations copyWith({
  1. String? title,
  2. String? registerBtn,
  3. String? previousStepBtn,
  4. String? nextStepBtn,
  5. String? closeBtn,
  6. String? defaultEmailTitle,
  7. String? defaultEmailLabel,
  8. String? defaultEmailHint,
  9. String? defaultEmailEmpty,
  10. String? defaultEmailValidatorMessage,
  11. String? defaultPasswordTitle,
  12. String? defaultPasswordLabel,
  13. String? defaultPasswordHint,
  14. String? defaultPasswordValidatorMessage,
})

Implementation

RegistrationTranslations copyWith({
  String? title,
  String? registerBtn,
  String? previousStepBtn,
  String? nextStepBtn,
  String? closeBtn,
  String? defaultEmailTitle,
  String? defaultEmailLabel,
  String? defaultEmailHint,
  String? defaultEmailEmpty,
  String? defaultEmailValidatorMessage,
  String? defaultPasswordTitle,
  String? defaultPasswordLabel,
  String? defaultPasswordHint,
  String? defaultPasswordValidatorMessage,
}) {
  return RegistrationTranslations(
    title: title ?? this.title,
    registerBtn: registerBtn ?? this.registerBtn,
    previousStepBtn: previousStepBtn ?? this.previousStepBtn,
    nextStepBtn: nextStepBtn ?? this.nextStepBtn,
    closeBtn: closeBtn ?? this.closeBtn,
    defaultEmailTitle: defaultEmailTitle ?? this.defaultEmailTitle,
    defaultEmailLabel: defaultEmailLabel ?? this.defaultEmailLabel,
    defaultEmailHint: defaultEmailHint ?? this.defaultEmailHint,
    defaultEmailEmpty: defaultEmailEmpty ?? this.defaultEmailEmpty,
    defaultEmailValidatorMessage:
        defaultEmailValidatorMessage ?? this.defaultEmailValidatorMessage,
    defaultPasswordTitle: defaultPasswordTitle ?? this.defaultPasswordTitle,
    defaultPasswordLabel: defaultPasswordLabel ?? this.defaultPasswordLabel,
    defaultPasswordHint: defaultPasswordHint ?? this.defaultPasswordHint,
    defaultPasswordValidatorMessage: defaultPasswordValidatorMessage ??
        this.defaultPasswordValidatorMessage,
  );
}