DomPopupSource constructor
DomPopupSource(
- AsyncMeasureSize<
HtmlElement> _asyncMeasureSize, - HtmlElement sourceElement, {
- Alignment alignOriginX = Alignment.Start,
- Alignment alignOriginY = Alignment.Start,
- Point<
num> transform = const Point(0, 0), - 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;
}