SearchBarComponent class

Defines a Search Bar Widget builder. A Search Bar is any Widget that wraps two Widgets SearchBarComponentData.searchField and SearchBarComponentData.searchingIndicator.

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 ComponentsConfiguration for more details.

See Also:

Implementers

Constructors

SearchBarComponent({SearchBarBuilder? builder})
See SearchBarBuilder.

Properties

builder SearchBarBuilder?
A builder method to create the Search Bar Widget.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

build(SearchBarComponentData data) → Widget
The method uses the SearchBarComponent.builder method to actually build the Widget.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited