copyWith method

ChangePasswordRequest copyWith({
  1. String? currentPassword,
  2. String? newPassword,
})

Implementation

ChangePasswordRequest copyWith(
    {String? currentPassword, String? newPassword}) {
  return ChangePasswordRequest(
      currentPassword: currentPassword ?? this.currentPassword,
      newPassword: newPassword ?? this.newPassword);
}