unmountSlot method

void unmountSlot()

Implementation

void unmountSlot() {
  _bind.onUnmountCallback?.call();
  if (_isCreator || _bind.assignId) {
    if (_bind.autoRemove) {
      _ownedDependency?.delete();
      final controller = _controller;
      if (!_bind.global && controller is SintLifeCycleMixin) {
        controller.onDelete();
      }
    }
  }
  _remove?.call();
  _remove = null;
  _controller = null;
  _ownedDependency = null;
  _controllerBuilder = null;
  _filter = null;
  _wasStarted = false;
}