itemBuilder property

ItemBuilder<T> itemBuilder
final

Called for each suggestion returned by suggestionsCallback to build the corresponding widget.

This callback must not be null. It is called by the TypeAhead widget for each suggestion, and expected to build a widget to display this suggestion's info. For example:

itemBuilder: (context, suggestion) {
  return Padding(
    padding: const EdgeInsets.all(4.0),
    child: Text(
      suggestion,
    ),
  );
}

Implementation

final ItemBuilder<T> itemBuilder;