dryRunState method

DataCollectionUpdatedState<T> dryRunState({
  1. Set<MatchAction<T>>? newMatchers,
  2. Set<FilterAction<T>>? newFilters,
  3. SortAction<T>? newSort,
  4. DataCollectionSortResetMode? resetSort,
})

Implementation

DataCollectionUpdatedState<T> dryRunState({
  Set<MatchAction<T>>? newMatchers,
  Set<FilterAction<T>>? newFilters,
  SortAction<T>? newSort,
  DataCollectionSortResetMode? resetSort,
}) =>
    _chainProcessData(
      useOriginalData: true,
      newMatchers: newMatchers != null
          ? IMap.fromEntries(newMatchers.map((e) => MapEntry(e.key, e)))
          : null,
      newFilters: newFilters != null
          ? IMap.fromEntries(newFilters.map((e) => MapEntry(e.key, e)))
          : null,
      newSort: newSort ?? _getSortToApply(resetSort),
    );