copyWith method

ChangePasswordState copyWith({
  1. bool? isLoading,
  2. String? errorMessage,
  3. bool? currentHasError,
  4. bool? newHasError,
  5. bool? confirmHasError,
})

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,
  );
}