import 'package:get/get.dart';
import '../../../app.dart';

class FilterState {
  RxBool isSortLoading = false.obs;
  RxBool isFiltersLoading = false.obs;
  RxBool isPriceLoading = false.obs;

  RxBool hasError = false.obs;

  List<SortModel> sortModels = [];
  int selectedSortModelId = 1;

  List<PriceFilterModel> priceModels = [];
  RxInt selectedPriceFilterModelId = 0.obs;
  Rxn<PriceFilterModel> selectedPriceFilter = new Rxn<PriceFilterModel>();

  RxList<FilterModel> filterModels = <FilterModel>[].obs;
  RxInt totalAppliedFilter = 0.obs;

  // RxMap<String, dynamic> selectedFilter = <String, dynamic>{}.obs;

  RxMap<String, dynamic> filterableQueryParams = <String, dynamic>{}.obs;

  // TextEditingController startPrice = new TextEditingController();
  // TextEditingController endPrice = new TextEditingController();
}
