Closer class abstract

Contains collection of SingleAutoClosable and SubAutoClosable instances and handle their close with its own lifecycle period

Implementers

Constructors

Closer()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addClosable(SingleAutoClosable closable) → void
Add SingleAutoClosable instance to that Closer to handle its destruction when onClose called
addSubClosable(SubAutoClosable closable) → void
Add SubAutoClosable instance to that Closer to handle its destruction when onClose called
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onClose() → void
Initiates the closure of all managed SingleAutoClosable and SubAutoClosable instances. The onClose operation handles the closure of these instances in accordance with the Closer's own lifecycle.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited