dispose method Null safety

  1. @mustCallSuper
void dispose()
mustCallSuper">@mustCallSuper

Free up the resources associated with this ink feature.

Implementation

@mustCallSuper
void dispose() {
  assert(!_debugDisposed);
  assert(() {
    _debugDisposed = true;
    return true;
  }());
  _controller._removeFeature(this);
  onRemoved?.call();
}