EntityQueryResult<T extends Object> class
What useEntityQuery returns: the current snapshot plus the setters that change the query driving it.
Constructors
-
EntityQueryResult({required AsyncValue<
EntityListSnapshot< snapshot, required ListQuery query, required void setSearch(String? search), required void setSort(List<T> >SortClause> ? sort), required void setFilter(List<FilterClause> ? filter), required void setLimit(int? limit), required void setCursor(String? search), required VoidCallback reset}) -
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- query → ListQuery
-
The query currently applied.
final
- reset → VoidCallback
-
Return to
initialQuery.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- setCursor → void Function(String? search)
-
Advance or rewind pagination.
final
-
setFilter
→ void Function(List<
FilterClause> ? filter) -
Replace the filter clauses.
final
- setLimit → void Function(int? limit)
-
Replace the page size.
final
- setSearch → void Function(String? search)
-
Replace the free-text search term. Passing null clears it.
final
-
setSort
→ void Function(List<
SortClause> ? sort) -
Replace the sort clauses.
final
-
snapshot
→ AsyncValue<
EntityListSnapshot< T> > -
The list read under the current query.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited