MaterialExpansionPanelAutoDismiss constructor

MaterialExpansionPanelAutoDismiss(
  1. MaterialExpansionPanel _expansionPanel,
  2. @Optional() @Inject(overlayContainerToken) Element? _overlayContainerToken,
  3. HtmlElement _element
)

Implementation

MaterialExpansionPanelAutoDismiss(
    this._expansionPanel,
    @Optional() @Inject(overlayContainerToken) this._overlayContainerToken,
    this._element) {
  _clicksOutsideController = StreamController.broadcast(
      sync: true,
      onListen: () {
        _mouseUpListener = document.onMouseUp.listen(_onMouseUp);
      },
      onCancel: () {
        _mouseUpListener?.cancel();
        _mouseUpListener = null;
      });
}