SubAutoClosable<Closable, SubClosable> constructor

SubAutoClosable<Closable, SubClosable>(
  1. Closable closable,
  2. SubClosable subClosable,
  3. 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);