refresh method

void refresh()

Implementation

void refresh() {
  const nextPageKey = Next(isStart: true);
  final currentFilters = ref.read(searchFilterProvider);
  state = state.copyWith(
    records: [],
    nextPageKey: nextPageKey,
    filter: currentFilters,
    loading: false,
  );
  load(nextPageKey, 30);
}