part of 'auth_bloc.dart';

class AuthState extends Equatable {
  const AuthState({
    required this.passwordHidden,
    required this.isLoading,
    required this.isButtonEnabled,
  });

  final bool passwordHidden;
  final bool isLoading;
  final bool isButtonEnabled;

  AuthState copyWith({
    bool? passwordHidden,
    bool? isLoading,
    bool? isButtonEnabled,
  }) {
    return AuthState(
      isLoading: isLoading ?? this.isLoading,
      passwordHidden: passwordHidden ?? this.passwordHidden,
      isButtonEnabled: isButtonEnabled ?? this.isButtonEnabled,
    );
  }

  @override
  List<Object?> get props => [passwordHidden, isLoading, isButtonEnabled];
}
