UPopupMenuItem class

One item of UPopupMenu: label, icon, action, destructive style.

Constructors

UPopupMenuItem({required String label, required IconData icon, required VoidCallback onTap, bool visible = true, bool destructive = false, Color? color})
const

Properties

color → Color?
Main color (defaults to the theme).
final
destructive → bool
Paints it in the error color (delete).
final
hashCode → int
The hash code for this object.
no setterinherited
icon → IconData
Icon shown with it.
final
label → String
Label text.
final
onTap → VoidCallback
Called when tapped.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
visible → bool
False hides it completely (takes no space).
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