clear method
void
clear()
Implementation
void clear() {
_closed = true;
koin.logger.isAtInfo("closing scope:'$id'", Level.debug);
// call on close from callbacks
callbacks.forEach((callback) {
callback.onScopeClose();
});
callbacks.clear();
_instanceRegistry.close();
}