SubAutoClosable<Closable, SubClosable> constructor
SubAutoClosable<Closable, SubClosable> (
- Closable closable,
- SubClosable subClosable,
- void onClose()?
Creates a new instance of SubAutoClosable with the specified
closable
and subClosable
entities, allowing them to be managed
together for closure. You can also provide an optional onClose
callback function to define custom actions to be executed when the
SubAutoClosable is closed.
Implementation
SubAutoClosable(this.closable, this.subClosable, this.onClose);