addClosable method

  1. @override
void addClosable(
  1. SingleAutoClosable closable
)
override

Add SingleAutoClosable instance to that Closer to handle its destruction when onClose called

Implementation

@override
void addClosable(SingleAutoClosable closable) {
  if (!attachedAutoclosables.contains(closable)) {
    attachedAutoclosables.add(closable);
    closables.add(closable);
  }
}