SearchBuilder<T extends Object> class

Builder widget for searching.

Inheritance

Constructors

SearchBuilder({Widget? emptyWidget, EdgeInsetsGeometry padding = const EdgeInsets.all(10), TextEditingController? controller, int minLength = 1, Widget? initialWidget, Color? indicatorColor, SearchBuilderHistory? history, required Future<Iterable<T>> search(String text), String? initialValue, required List<Widget> builder(BuildContext context, T item), List<Widget>? top, List<Widget>? insert, int insertPosition = 0, List<Widget>? bottom})
Builder widget for searching.
const

Properties

bottom List<Widget>?
final
builder List<Widget> Function(BuildContext context, T item)
Builder when the task is completed.
final
controller TextEditingController?
Controller for entering a search string.
final
emptyWidget Widget?
Builder when the data is empty.
final
hashCode int
The hash code for this object.
no setterinherited
history SearchBuilderHistory?
Search history builder.
final
indicatorColor Color?
Loading indicator color.
final
initialValue String?
Default search text.
final
initialWidget Widget?
The first widget shown.
final
insert List<Widget>?
final
insertPosition int
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
minLength int
The minimum length of search text required to perform a search.
final
padding EdgeInsetsGeometry
Padding.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
Callback to be executed during the search.
final
top List<Widget>?
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _SearchBuilderState<T>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
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 ==(Object other) bool
The equality operator.
inherited