copyWith method

AccountInfo copyWith({
  1. int? registrationMonth,
  2. int? registrationYear,
  3. String? phoneNumberCountryCode,
  4. int? lastNameChangeDate,
  5. int? lastPhotoChangeDate,
})

Implementation

AccountInfo copyWith({
  int? registrationMonth,
  int? registrationYear,
  String? phoneNumberCountryCode,
  int? lastNameChangeDate,
  int? lastPhotoChangeDate,
}) =>
    AccountInfo(
      registrationMonth: registrationMonth ?? this.registrationMonth,
      registrationYear: registrationYear ?? this.registrationYear,
      phoneNumberCountryCode:
          phoneNumberCountryCode ?? this.phoneNumberCountryCode,
      lastNameChangeDate: lastNameChangeDate ?? this.lastNameChangeDate,
      lastPhotoChangeDate: lastPhotoChangeDate ?? this.lastPhotoChangeDate,
    );