autoDismissBlockers property
The outer element which should prevent the auto dismiss logic.
Implementation
@override
List<Element> get autoDismissBlockers {
// If the popup source is based on an element, exclude the source element
// from the auto dismiss logic, i.e. clicking on the source element does
// not trigger auto dismiss.
var sourceElement = state.source is ElementPopupSource
? (state.source as ElementPopupSource).sourceElement
: null;
return sourceElement != null
? (_autoDismissBlockers.toList()..add(sourceElement))
: _autoDismissBlockers.toList();
}