detach method
void
detach()
Detaches the controller from the HTML element.
Implementation
void detach() {
if (_attachedElement == null) return;
_subscription?.cancel();
_subscription = null;
_attachedElement = null;
}