ContextMenuItem<T> class

Represents a context menu item

Constructors

ContextMenuItem({required String label, required T value, IconData? icon, bool enabled = true, bool isDestructive = false})
Constructor
const

Properties

enabled bool
Whether the item is enabled
final
hashCode int
The hash code for this object.
no setterinherited
icon IconData?
Optional icon
final
isDestructive bool
Whether this is a destructive action
final
label String
The display label
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → T
The value to return when selected
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