wipeQueryFilters method
Implementation
Future<void> wipeQueryFilters() async {
if (state.filtersBackup.containsKey(state.model.id)) {
final ModelFiltersBackup modelFiltersBackup = state.modelFiltersBackup;
emit(state.copyWith(
filtersBackup: {
...state.filtersBackup,
state.model.id: modelFiltersBackup.copyWithNull(query: true),
},
));
emit(state.copyWithNull(query: true));
filterStructureBloc.init(null);
unawaited(applyFilters(enforced: true));
}
}