copyWith method
Implementation
ChangePasswordState copyWith({
bool? isLoading,
String? errorMessage,
bool? currentHasError,
bool? newHasError,
bool? confirmHasError,
}) {
return ChangePasswordState(
isLoading: isLoading ?? this.isLoading,
errorMessage: errorMessage,
currentHasError: currentHasError ?? this.currentHasError,
newHasError: newHasError ?? this.newHasError,
confirmHasError: confirmHasError ?? this.confirmHasError,
);
}