DataCollection<T> class
Constructors
-
DataCollection({Iterable<
T> data = const [], SortAction<T> ? defaultSort, Iterable<MatchAction< initialMatchers = const [], Iterable<T> >FilterAction< initialFilters = const [], bool autoActualize = true, DataCollectionListener<T> >T> ? listener}) -
DataCollection.fromState({required DataCollectionState<
T> state, SortAction<T> ? defaultSort, StateCallback<DataCollectionState< ? onStateChanged, StateCallback<T> >DataCollectionState< ? onActualize, bool autoActualize = true})T> >
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< filters) → DataCollectionState<T> >T> -
addMatcher(
MatchAction< T> matcher) → DataCollectionState<T> -
addMatchers(
Iterable< MatchAction< matchers) → DataCollectionState<T> >T> -
applyDefaultSort(
) → DataCollectionState< T> -
applySort(
SortAction< T> sort) → DataCollectionState<T> -
dryRunState(
{Set< MatchAction< ? newMatchers, Set<T> >FilterAction< ? newFilters, SortAction<T> >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