list property

List<DropdownItem> list
final

List of suggestions for the searchfield. each suggestion should have a unique searchKey

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

Implementation

final List<DropdownItem> list;