unregisterSource static method

void unregisterSource(
  1. Element source
)

Clears references to the given source element if it is currently tracked.

Implementation

static void unregisterSource(Element source) {
  if (_activeSession?.sourceElement == source) {
    cancelDrag();
  }
}