clear method

  1. @override
Future<void> clear()
override

Atomically clears the container, then disposes all the previously contained Disposables. This method can be called multiple times.

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

Implementation

@override
Future<void> clear() => _clear(_Operation.clear);