delete abstract method

bool delete(
  1. Object disposable
)

Removes (but does not dispose) the given disposable if it is part of this container.

disposable must be a StreamSubscription or a Sink.

Returns true if disposable was in this bag, and false if not. The method has no effect if disposable was not in this bag.

Throws DisposedException or ClearingException if this bag has been disposed or is disposing.

Implementation

bool delete(Object disposable);