Disposer.oneShot constructor
Disposer.oneShot()
Pass oneShot as true if no disposables are meant to be added after the dispose method is called. Convenience constructor for one shot mode or single dispose mode.
Implementation
//@Deprecated("Please use oneShot or multi instead")
//Disposer({bool oneShot = false}) : _oneShot = oneShot;
/// Convenience constructor for one shot mode or single dispose mode.
Disposer.oneShot() : _oneShot = true;