copyWith method

  1. @override
DataCollectionState<T> copyWith({
  1. Iterable<T>? originalData,
  2. Iterable<T>? data,
  3. Map<String, FilterAction<T>>? filters,
  4. Map<String, MatchAction<T>>? matchers,
  5. SortAction<T>? sort,
})
override

Implementation

@override
DataCollectionState<T> copyWith({
  Iterable<T>? originalData,
  Iterable<T>? data,
  Map<String, FilterAction<T>>? filters,
  Map<String, MatchAction<T>>? matchers,
  SortAction<T>? sort,
}) =>
    DataCollectionLoadingState(
      originalData: originalData ?? this.originalData,
      data: data ?? this.data,
      filters: filters ?? this.filters,
      matchers: matchers ?? this.matchers,
      sort: sort ?? this.sort,
    );