void dispose()

Free up the resources associated with this ink feature.

Source

void dispose() {
  assert(!_debugDisposed);
  assert(() { _debugDisposed = true; return true; });
  _controller._removeFeature(this);
  if (onRemoved != null)
    onRemoved();
}