DomPopupSource constructor

DomPopupSource(
  1. AsyncMeasureSize<HtmlElement> _asyncMeasureSize,
  2. HtmlElement sourceElement, {
  3. Alignment alignOriginX = Alignment.Start,
  4. Alignment alignOriginY = Alignment.Start,
  5. Point<num> transform = const Point(0, 0),
  6. bool initAriaAttributes = true,
})

Creates a new source from a measure function and source DOM element.

Setting alignOriginX and alignOriginY is used for calculating what the x and y position should be.

initAriaAttributes decides whether to set the popup related aria attributes. This defaults to true and can be set to false for cases where the popup source isn't the focus target.

Implementation

DomPopupSource(this._asyncMeasureSize, this.sourceElement,
    {Alignment alignOriginX = Alignment.Start,
    Alignment alignOriginY = Alignment.Start,
    Point transform = const Point(0, 0),
    bool initAriaAttributes = true})
    : _initAriaAttributes = initAriaAttributes {
  _alignOriginX = alignOriginX;
  _alignOriginY = alignOriginY;
}