add abstract method

Future<bool> add(
  1. Object disposable
)

Adds a disposable to this container or disposes it if this bag has been disposed or is disposing.

disposable must be a StreamSubscription or a Sink.

Returns true if disposable was added successfully.

Implementation

Future<bool> add(Object disposable);