ContextMenuButtonItem class

The kind and callback for a context menu button.

See also:

Annotations

Constructors

ContextMenuButtonItem({required VoidCallback? onPressed, ContextMenuButtonType? type, ContextMenuButtonKind? kind, String? label})
Creates a const instance of ContextMenuButtonItem.
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
kind → ContextMenuButtonKind
The kind of button this represents.
no setter
label → String?
The label to display on the button.
final
onPressed → VoidCallback?
The callback to be called when the button is pressed.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → ContextMenuButtonType
The type of button this represents.
no setter

Methods

copyWith({VoidCallback? onPressed, ContextMenuButtonType? type, ContextMenuButtonKind? kind, String? label}) → ContextMenuButtonItem
Creates a new ContextMenuButtonItem with the provided parameters overridden.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override