SearchDelegate class

Inheritance

Constructors

SearchDelegate({Key? key, Color backgroundColor = Colors.white, Color? buttonColor, Color? iconColor, IconData searchIcon = LineIcons.search, IconData closeIcon = LineIcons.times, IconData backIcon = LineIcons.chevronLeft, BorderRadius borderRadius = const BorderRadius.all(Radius.circular(12)), EdgeInsets padding = const EdgeInsets.symmetric(vertical: 9, horizontal: 15), EdgeInsets? resultPadding, TextStyle? textStyle, TextStyle? inputTextstyle, Duration? resultsAnimationDuration, num? resultsAnimationOffset, Color? inputBackgroundColor, InputBorder? inputBorder, String placeholder = "Search", Border border = const Border(), String initialQuery = "", bool showExit = true, bool liveSearch = true, Widget? searchLeading, Widget? searchTrailing, Widget? emptyScreen, Widget? resultScreen, Widget? errorScreen, Widget? loadingScreen, Widget? header, Widget? history, Future<List<ISearchable>> request(String)?, Future<List<ISearchable>> lazyRequest(String, dynamic)?, Future<List<ISearchable>> suggestions(String)?, num? paginationLimit = 30, dynamic paginationCursor = 1, bool paginateByPageNumber = false, num? paginationOffset = 1, bool enableLazyLoading = false, bool enableLoadMoreScroll = false, Widget? loadMoreWidget, Widget? loadingWidget, required Widget resultBuilder(ISearchable), Widget suggestionsBuilder(ISearchable)?})
const

Properties

backgroundColor Color
final
backIcon IconData
final
border Border
final
borderRadius BorderRadius
final
buttonColor Color?
final
closeIcon IconData
final
emptyScreen Widget?
final
enableLazyLoading bool
final
enableLoadMoreScroll bool
final
errorScreen Widget?
final
hashCode int
The hash code for this object.
no setterinherited
final
history Widget?
final
iconColor Color?
final
initialQuery String
final
inputBackgroundColor Color?
final
inputBorder InputBorder?
final
inputTextstyle TextStyle?
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
lazyRequest → (Future<List<ISearchable>> Function(String, dynamic)?)
final
liveSearch bool
final
loadingScreen Widget?
final
loadingWidget Widget?
final
loadMoreWidget Widget?
final
padding EdgeInsets
final
paginateByPageNumber bool
final
paginationCursor → dynamic
final
paginationLimit num?
final
paginationOffset num?
final
placeholder String
final
request → (Future<List<ISearchable>> Function(String)?)
final
resultBuilder Widget Function(ISearchable)
final
resultPadding EdgeInsets?
final
resultsAnimationDuration Duration?
final
resultsAnimationOffset num?
final
resultScreen Widget?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchIcon IconData
final
searchLeading Widget?
final
searchTrailing Widget?
final
showExit bool
final
suggestions → (Future<List<ISearchable>> Function(String)?)
final
suggestionsBuilder → (Widget Function(ISearchable)?)
final
textStyle TextStyle?
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<SearchDelegate>
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