IOSSystemContextMenuItemDataCustom class final
An IOSSystemContextMenuItemData for custom action buttons defined by the developer.
Must specify a title and onPressed.
Only supported on iOS 16.0 and above.
See also:
- SystemContextMenuController, which is used to show the system context menu.
- IOSSystemContextMenuItemCustom, which performs a similar role but at the widget level.
- Inheritance
-
- Object
- IOSSystemContextMenuItemData
- IOSSystemContextMenuItemDataCustom
- Mixed-in types
Constructors
- IOSSystemContextMenuItemDataCustom.new({required String title, required VoidCallback onPressed})
-
Creates an instance of IOSSystemContextMenuItemDataCustom.
const
Properties
- callbackId → String
-
The unique identifier for this custom action.
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- onPressed → VoidCallback
-
The callback to be executed when the item is selected.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String
-
The text to display to the user.
final
Methods
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override