SearchListListenableBuilder<T extends Object> class

A stateful searchable widget that builds a list view based on a list of items.

Inheritance
Mixed in types

Constructors

SearchListListenableBuilder({required Widget builder(BuildContext context, UnmodifiableListView<T> list), required Iterable<T> items, required Iterable<String> searchIn(T item, BuildContext context), required TextEditingController textController, bool caseSensitiveSearch = false, bool startWithSearch = true, Key? key})
Constructor for the SearchListListenableBuilder class.
const

Properties

builder Widget Function(BuildContext context, UnmodifiableListView<T> list)
The builder function to use for the list view.
final
caseSensitiveSearch bool
A boolean indicating whether the search should be case-sensitive.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
items Iterable<T>
The list of items to display in the list view.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchIn Iterable<String> Function(T item, BuildContext context)
A function that takes an item and returns an iterable of strings to search in.
finalinherited
startWithSearch bool
A boolean indicating whether the search field should only search by starting with the search string.
finalinherited
textController TextEditingController
The text editing controller for the search bar.
finalinherited

Methods

compareWithInput(String input, String itemText) bool
Compares an input string with an item's text.
inherited
compareWithTextInput(TextEditingController controller, String item) bool
Compares an TextEditingController text input string with an item's text.
inherited
createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<SearchListListenableBuilder<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