MenuBarItem class

A top-level menu entry containing a label and a list of MenuItem children.

Each MenuBarItem appears as a button in the menu bar. Activating it opens a dropdown showing its children.

Constructors

Creates a MenuBarItem with the given label and children.
const

Properties

children List<MenuItem>
The dropdown menu entries for this bar item.
final
hashCode int
The hash code for this object.
no setterinherited
label String
The text label displayed on the menu bar.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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