PopupMenuItem class

Constructors

PopupMenuItem({required String label, String? subtitle, Glyph? glyph, VoidCallback? onPressed, bool danger = false, bool? checked, bool keepsOpen = false, PopupMenuSection? section, List<PopupMenuItem> subItems = const []})
const

Properties

checked → bool?
final
danger → bool
final
glyph → Glyph?
final
hashCode → int
The hash code for this object.
no setterinherited
keepsOpen → bool
iOS's keepsMenuPresented, for one of several choices.
final
label → String
final
onPressed → VoidCallback?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
section → PopupMenuSection?
Sets this item and those after it apart from the items above, as an inline section of an iOS menu does.
final
subItems → List<PopupMenuItem>
final
subtitle → String?
final

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