manageDisposer method

  1. @deprecated
  2. @mustCallSuper
  3. @override
void manageDisposer (Disposer disposer)
@mustCallSuper, override

Automatically handle arbitrary disposals using a callback.

The parameter may not be null.

Deprecated: 1.7.0 To be removed: 2.0.0

Use getManagedDisposer instead. One will need to update to DisposableManagerV5 or above for this.

Implementation

@deprecated
@mustCallSuper
@override
void manageDisposer(Disposer disposer) {
  _throwOnInvalidCall('manageDisposer', 'disposer', disposer);
  _logManageMessage(disposer);

  _internalDisposables.add(new ManagedDisposer(disposer));
}