MenuBar class
A horizontal menu bar containing MenuBarItem entries.
Renders a top bar with menu labels. Pressing Enter or the activation key opens a dropdown for the focused menu item.
- Inheritance
-
- Object
- Widget
- StatefulWidget
- MenuBar
Constructors
Properties
- backgroundColor → Color?
-
The background color of the menu bar.
final
- focusNode → FocusNode?
-
An optional focus node for keyboard navigation.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
items
→ List<
MenuBarItem> -
The top-level menu entries displayed in the bar.
final
- key → Key?
-
Controls how one widget replaces another in the tree.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createElement(
) → StatefulElement -
Creates the Element for this widget.
inherited
-
createState(
) → State< MenuBar> -
Creates the mutable state for this widget.
override
-
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