triggersOutside function
A stream of click, mouseup or focus events outside a given element.
Implementation
Stream<Event> triggersOutside(dynamic /* Element | ElementRef */ element) {
if (element is ElementRef) element = element.nativeElement;
return triggersOutsideAny((node) => node == element);
}