autoDismissBlockers property

  1. @override
List<Element> get autoDismissBlockers
override

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();
}
  1. @Input()
set autoDismissBlockers (List<Element> elements)

Page elements that do not auto-dismiss the popup in addition to the popup up source element.

Implementation

@Input()
set autoDismissBlockers(List<Element> elements) {
  _autoDismissBlockers = elements;
}