SearchResultItem class

An item to show in the search results of a search field.

Constructors

SearchResultItem(String searchKey, {Widget? child, VoidCallback? onSelected})
Creates a macOS-styled item to show in the search results of a search field.
const

Properties

child Widget?
The widget to display in the search results overlay. If not specified, a Text widget with the default styling will appear instead.
final
hashCode int
The hash code for this object.
no setteroverride
onSelected VoidCallback?
The callback to call when this item is selected from the search results.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchKey String
The string to search for.
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.
override