OverlayRef constructor
OverlayRef(
- AsyncApplyState<
HtmlElement> _asyncApplyState, - AsyncMeasureSize<
HtmlElement> _asyncMeasureSize, - PortalHost _delegatePortalHost,
- HtmlElement containerElement,
- HtmlElement overlayElement,
- Function _runOutsideAngular, {
- 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());
}