DisposableCollection<D extends Disposable> constructor

DisposableCollection<D extends Disposable>({
  1. bool? autoClear,
})

Creates a new DisposableCollection.

Implementation

factory DisposableCollection({bool? autoClear}) {
  return DisposableCollection.from([], autoClear: autoClear);
}