OverlayRef constructor

OverlayRef(
  1. AsyncApplyState<HtmlElement> _asyncApplyState,
  2. AsyncMeasureSize<HtmlElement> _asyncMeasureSize,
  3. PortalHost _delegatePortalHost,
  4. HtmlElement containerElement,
  5. HtmlElement overlayElement,
  6. Function _runOutsideAngular, {
  7. OverlayState? state,
})

Implementation

OverlayRef(
    this._asyncApplyState,
    this._asyncMeasureSize,
    this._delegatePortalHost,
    this.containerElement,
    this.overlayElement,
    this._runOutsideAngular,
    {OverlayState? state})
    : this.state = MutableOverlayState.from(state) {
  _stateUpdateListener = this.state.onUpdate.listen((_) => _applyChanges());
}