MenuComponent class
Defines a Menu Widget builder. A Menu is any Widget that wraps two Widgets MenuComponentData.searchBar and MenuComponentData.listView.
Example
MenuComponent(
builder: (MenuComponentData data)
{
return Card(
child: Column(
children: <Widget>[
data.isSearchEnabled
? Expanded(
child: data.searchBar,
flex: data.menuFlexValues.searchBar,
)
: Container(),// Show an nothing (empty) container when search is disabled.
Expanded(
child: data.listView,
flex: data.menuFlexValues.listView,
),
],
),
);
}
);
See ComponentsConfiguration for more details.
See Also:
- Implementers
Constructors
- MenuComponent({MenuBuilder? builder})
- See MenuBuilder.
Properties
- builder ↔ MenuBuilder?
-
A builder method to create the menu Widget. It combines the search bar
and list view.
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(
MenuComponentData data) → Widget - The method uses the MenuComponent.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