dispose method

void dispose()

Detaches the anchor from its line (and frees its tracking, if any).

Implementation

void dispose() {
  _owner?._anchors.remove(this);
  _owner = null;
}