results property

List<SearchResultItem>? results
final

List of results for the searchfield.

Each suggestion should have a unique searchKey.

['ABC', 'DEF', 'GHI', 'JKL']
  .map((e) => SearchResultItem(e, child: Text(e)))
  .toList(),

Implementation

final List<SearchResultItem>? results;