1. @override
Object onInvoke(Map<String, dynamic> params)

Handles an action invocation and deletes the target path.

Source

@override
Object onInvoke(Map<String, dynamic> params) {
  provider.removeNode(targetPath);
  if (onDelete != null) {
    onDelete();
  }
  return {};
}