AdaptiveContextMenuAction class

A context menu action item

Constructors

AdaptiveContextMenuAction({required String title, required VoidCallback onPressed, dynamic icon, bool isDestructive = false, bool isDisabled = false})
Creates a context menu action
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
icon → dynamic
Icon for the action (iOS 26+: SF Symbol string, iOS <26/Android: IconData)
final
isDestructive → bool
Whether this is a destructive action (shown in red)
final
isDisabled → bool
Whether this action is disabled
final
onPressed → VoidCallback
Callback when the action is pressed
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
title → String
The title of the action
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