SearchResultItem constructor

const SearchResultItem(
  1. String searchKey, {
  2. Widget? child,
  3. VoidCallback? onSelected,
})

Creates a macOS-styled item to show in the search results of a search field.

Can be further customized via its child property.

Implementation

const SearchResultItem(
  this.searchKey, {
  this.child,
  this.onSelected,
});