createNodeFromContext method

void createNodeFromContext(
  1. VSNodeDataBuilder builder
)

Creates a node based on the builder and the current _contextMenuContext

Notifies listeners to this provider

Implementation

void createNodeFromContext(VSNodeDataBuilder builder) {
  updateOrCreateNodes(
    [
      builder(
        _contextMenuContext!.offset,
        _contextMenuContext!.reference,
      )
    ],
  );
}