addSubClosable method

  1. @override
void addSubClosable(
  1. SubAutoClosable subClosable
)
override

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

Implementation

@override
void addSubClosable(SubAutoClosable subClosable) {
  if (!attachedSubAutoclosables.contains(subClosable)) {
    attachedSubAutoclosables.add(subClosable);
    subClosables.add(subClosable);
  }
}