addDisposeCallback method

void addDisposeCallback(
  1. DisposeHandler callback
)

添加销毁回调

Implementation

void addDisposeCallback(DisposeHandler callback) {
  _checkDisposed();
  _disposeHandlers.add(callback);
}