MorphMenuItem class

An entry of showMorphMenu.

Constructors

MorphMenuItem({required IconData icon, required String label, required VoidCallback onSelected, Color? tint})
Creates a menu entry.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
icon IconData
Leading icon of the row.
final
label String
The row label.
final
onSelected VoidCallback
Called on tap, before the menu plays its close - so the action lands even if the owner tears the screen down right after.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tint Color?
Overrides the row's icon and label color - destructive entries typically pass the app's danger color.
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