handleCustomContextMenuAction method

  1. @override
void handleCustomContextMenuAction(
  1. String callbackId
)
override

Called when a custom context menu action is triggered.

Implementation

@override
void handleCustomContextMenuAction(String callbackId) {
  final VoidCallback? callback = _customActionCallbacks[callbackId];
  assert(
    callback != null,
    'Custom action callback not found for id: $callbackId. '
    'This may indicate that the menu item was not properly registered.',
  );
  callback?.call();
}