QuerySetLoader<T> class
Widget that loads data set for current query string and transforms it into ListView populated with loaded data.
Constructors
-
QuerySetLoader({@required QuerySetCall<
T> querySetCall, @required QuerySetItemBuilder<T> itemBuilder, bool loadOnEachChange: false, bool animateChanges: true })
Properties
- animateChanges → bool
-
Determines whether ListView's insert and remove operations should be
animated.
final
-
itemBuilder
→ QuerySetItemBuilder<
T> -
Function taking single element of current data set and returning ListView
item corresponding to that element.
final
- loadOnEachChange → bool
-
Indicating whether
querySetCall
should be triggered on each query change. If false query set is loaded once user submits query.final -
querySetCall
→ QuerySetCall<
T> -
Function being called in order to load data. Takes query string as
argument and returns list of corresponding items. Received function is
called asynchronously within the loader.
final
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- key → Key
-
Controls how one widget replaces another widget in the tree. [...]
final, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
clearData(
) → void - Used internally by SearchBar to clear list data once user ends search action.
-
createState(
) → QuerySetLoaderState - Creates the mutable state for this widget at a given location in the tree. [...]
-
createElement(
) → StatefulElement -
Creates a
StatefulElement
to manage this widget's location in the tree. [...]inherited -
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of
DiagnosticsNode
objects describing this node's children. [...]@protected, inherited -
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node. [...]
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
@pragma("vm:entry-point"), inherited
-
toDiagnosticsNode(
{String name, DiagnosticsTreeStyle style }) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by toStringDeep. [...]
inherited
-
toString(
{DiagnosticLevel minLevel: DiagnosticLevel.debug }) → String -
Returns a string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne: '', String prefixOtherLines, DiagnosticLevel minLevel: DiagnosticLevel.debug }) → String -
Returns a string representation of this node and its descendants. [...]
inherited
-
toStringShallow(
{String joiner: ', ', DiagnosticLevel minLevel: DiagnosticLevel.debug }) → String -
Returns a one-line detailed description of the object. [...]
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited
Static Properties
- blank → QuerySetLoader
-
Instance with empty function bodies used internally by
SearchBar
.final