clearTempLink method

void clearTempLink()

This method is used to clear the temporary link from the node editor.

Emits a DrawTempLinkEvent event.

Implementation

void clearTempLink() {
  _tempLink = null;

  // The temp link is treated differently from regular links, so we don't need to mark the links data as dirty.

  eventBus.emit(
    DrawTempLinkEvent(id: const Uuid().v4(), Offset.zero, Offset.zero),
  );
}