part of 'login_form_bloc.dart';

@freezed
class LoginFormState with _$LoginFormState {
  const factory LoginFormState({
    required String email,
    required String password,
    required Option<Either<AuthFailure, Auth>> failureOrAuthOption,
    @Default(false) bool isSubmitting,
    @Default(false) bool showErrorMessages,
  }) = _LoginFormState;

  factory LoginFormState.initial() =>
      LoginFormState(email: '', password: '', failureOrAuthOption: none());
}
