CNPopupMenuItem class
A selectable item in a popup menu.
- Inheritance
-
- Object
- CNPopupMenuEntry
- CNPopupMenuItem
Constructors
- CNPopupMenuItem.new({required String label, CNSymbol? icon, bool enabled = true})
-
Creates a selectable popup menu item.
const
Properties
- enabled → bool
-
Whether the item can be selected.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → CNSymbol?
-
Optional SF Symbol shown before the label.
final
- label → String
-
Display label for the item.
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