DocumentOrShadowRoot constructor

DocumentOrShadowRoot({
  1. Element? activeElement,
  2. List<CSSStyleSheet>? adoptedStyleSheets,
  3. Element? fullscreenElement,
  4. Element? pictureInPictureElement,
  5. Element? pointerLockElement,
  6. StyleSheetList? styleSheets,
  7. Element? elementFromPoint(
    1. num,
    2. num
    )?,
  8. List<Element> elementsFromPoint(
    1. num,
    2. num
    )?,
  9. List<Animation> getAnimations()?,
})

Implementation

factory DocumentOrShadowRoot({
  _i3.Element? activeElement,
  _i2.List<_i3.CSSStyleSheet>? adoptedStyleSheets,
  _i3.Element? fullscreenElement,
  _i3.Element? pictureInPictureElement,
  _i3.Element? pointerLockElement,
  _i3.StyleSheetList? styleSheets,
  _i3.Element? Function(
    _i2.num,
    _i2.num,
  )? elementFromPoint,
  _i2.List<_i3.Element> Function(
    _i2.num,
    _i2.num,
  )? elementsFromPoint,
  _i2.List<_i3.Animation> Function()? getAnimations,
}) =>
    DocumentOrShadowRoot._(
      activeElement: activeElement ?? _i6.undefined,
      adoptedStyleSheets: adoptedStyleSheets,
      fullscreenElement: fullscreenElement ?? _i6.undefined,
      pictureInPictureElement: pictureInPictureElement ?? _i6.undefined,
      pointerLockElement: pointerLockElement ?? _i6.undefined,
      styleSheets: styleSheets ?? _i6.undefined,
      elementFromPoint: elementFromPoint == null
          ? null
          : _i4.allowInterop((
              p0,
              p1,
            ) =>
              () =>
                  elementFromPoint(
                    p0,
                    p1,
                  ) ??
                  _i6.undefined),
      elementsFromPoint: elementsFromPoint == null
          ? null
          : _i4.allowInterop(elementsFromPoint),
      getAnimations:
          getAnimations == null ? null : _i4.allowInterop(getAnimations),
    );