/ Call in detached
to prevent the element from unbinding when it is
/ detached from the dom. The element is unbound as a cleanup step that
/ allows its memory to be reclaimed. If cancelUnbindAll
is used, consider
calling unbindAll
when the element is no longer needed. This will allow
its memory to be reclaimed.
void cancelUnbindAll() {
if (_unbound == true) {
_unbindLog
.warning(() => '[$_name] already unbound, cannot cancel unbindAll');
return;
}
_unbindLog.fine(() => '[$_name] cancelUnbindAll');
if (_unbindAllJob != null) {
_unbindAllJob.stop();
_unbindAllJob = null;
}
}