part of 'user_edit_form_bloc.dart';

@freezed
class UserEditFormState with _$UserEditFormState {
  const factory UserEditFormState({
    required String name,
    required Option<Either<UserFailure, User>> failureOrUserOption,
    @Default(false) bool isSubmitting,
    @Default(false) bool showErrorMessages,
  }) = _UserEditFormState;

  factory UserEditFormState.initial() =>
      UserEditFormState(name: '', failureOrUserOption: none());
}
