SearchBarBuilder typedef

SearchBarBuilder = Widget Function(SearchBarComponentData data)

This typedef defines a method that returns a Widget that wraps SearchBarComponentData.searchField and SearchBarComponentData.searchingIndicator in a Widget, defining their layout.

Used by SearchBarComponent as SearchBarComponent.builder.

Example

SearchBarComponent(
  builder: (SearchBarComponentData data)
  {
    return Row(
      children: <Widget>[
        Flexible(
          child: data.searchField,
          flex: data.menuFlexValues.searchField,
        ),
        Flexible(
          child: data.isSearching ? data.searchingIndicator : Container(),
          flex: data.menuFlexValues.searchingIndicator,
        ),
      ],
    );
  }
);

See Also:

Implementation

typedef SearchBarBuilder = Widget Function(SearchBarComponentData data);