makeFiltersBackup method

Future<void> makeFiltersBackup()

Implementation

Future<void> makeFiltersBackup() async {
  final ModelFiltersBackup modelFiltersBackup = ModelFiltersBackup(
    model: state.model,
    totalPages: state.totalPages,
    currentPage: state.currentPage,
    query: state.query,
    globalSearchQuery: state.globalSearchQuery,
    sort: state.sort,
    globalSearchValue: globalSearchController.text,
  );
  emit(state.copyWith(
    filtersBackup: {
      ...state.filtersBackup,
      state.model.id: modelFiltersBackup,
    },
  ));
}