DataCollection<T> class

Constructors

DataCollection({Iterable<T> data = const [], SortAction<T>? defaultSort, Iterable<MatchAction<T>> initialMatchers = const [], Iterable<FilterAction<T>> initialFilters = const [], bool autoActualize = true, DataCollectionListener<T>? listener})
DataCollection.fromState({required DataCollectionState<T> state, SortAction<T>? defaultSort, StateCallback<DataCollectionState<T>>? onStateChanged, StateCallback<DataCollectionState<T>>? onActualize, bool autoActualize = true})

Properties

autoActualize bool
Controls to automatically pass new state to listeners.
final
defaultSort SortAction<T>?
final
hasCollectionListener bool
no setter
hashCode int
The hash code for this object.
no setterinherited
isLoading bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state DataCollectionState<T>
no setter

Methods

actualize() DataCollectionState<T>
addFilter(FilterAction<T> filter) DataCollectionState<T>
addFilters(Iterable<FilterAction<T>> filters) DataCollectionState<T>
addMatcher(MatchAction<T> matcher) DataCollectionState<T>
addMatchers(Iterable<MatchAction<T>> matchers) DataCollectionState<T>
applyDefaultSort() DataCollectionState<T>
applySort(SortAction<T> sort) DataCollectionState<T>
dryRunState({Set<MatchAction<T>>? newMatchers, Set<FilterAction<T>>? newFilters, SortAction<T>? newSort, DataCollectionSortResetMode? resetSort}) DataCollectionUpdatedState<T>
markLoading() DataCollectionState<T>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeFilter(String filterKey) DataCollectionState<T>
removeFilters(Iterable<String> filterKeys) DataCollectionState<T>
removeMatcher(String matcherKey) DataCollectionState<T>
removeMatchers(Iterable<String> matcherKeys) DataCollectionState<T>
resetFilters() DataCollectionState<T>
resetMatchers() DataCollectionState<T>
resetSort([DataCollectionSortResetMode mode = DataCollectionSortResetMode.defaultSort]) DataCollectionState<T>
toString() String
A string representation of this object.
inherited
updateOriginalData(Iterable<T> data) DataCollectionState<T>

Operators

operator ==(Object other) bool
The equality operator.
inherited