DocumentNode constructor

DocumentNode({
  1. String? type,
  2. ReadonlyArray<PageNode>? children,
  3. DocumentColorProfile? documentColorProfile,
  4. void appendChild(
    1. PageNode
    )?,
  5. void insertChild(
    1. num,
    2. PageNode
    )?,
  6. Array<PageNode> findChildren([
    1. bool (
      1. PageNode
      )?
    ])?,
  7. PageNode? findChild(
    1. bool (
      1. PageNode
      )
    )?,
  8. Array<Object> findAll([
    1. bool (
      1. Object
      )?
    ])?,
  9. dynamic findOne(
    1. bool (
      1. Object
      )
    )?,
  10. Array<Object> findAllWithCriteria<T extends List>(
    1. FindAllCriteria<T>
    )?,
  11. Array<WidgetNode> findWidgetNodesByWidgetId(
    1. String
    )?,
  12. String? id,
  13. _Intersection7? parent,
  14. String? name,
  15. bool? removed,
  16. bool? isAsset,
  17. String toString$()?,
  18. void remove()?,
  19. void setRelaunchData(
    1. Object
    )?,
  20. Object getRelaunchData()?,
  21. Future<Object> getCSSAsync()?,
  22. FrameNode? getTopLevelFrame()?,
})

Implementation

factory DocumentNode({
  _i2.String? type,
  _i4.ReadonlyArray<_i3.PageNode>? children,
  _i3.DocumentColorProfile? documentColorProfile,
  void Function(_i3.PageNode)? appendChild,
  void Function(
    _i2.num,
    _i3.PageNode,
  )? insertChild,
  _i4.Array<_i3.PageNode> Function([_i2.bool Function(_i3.PageNode)?])?
      findChildren,
  _i3.PageNode? Function(_i2.bool Function(_i3.PageNode))? findChild,
  _i4.Array<_i2.Object> Function([_i2.bool Function(_i2.Object)?])? findAll,
  _i2.dynamic Function(_i2.bool Function(_i2.Object))? findOne,
  _i4.Array<_i2.Object> Function<T extends _i2.List<_i2.dynamic>>(
          _i3.FindAllCriteria<T>)?
      findAllWithCriteria,
  _i4.Array<_i3.WidgetNode> Function(_i2.String)? findWidgetNodesByWidgetId,
  _i2.String? id,
  _Intersection7? parent,
  _i2.String? name,
  _i2.bool? removed,
  _i2.bool? isAsset,
  _i2.String Function()? toString$,
  void Function()? remove,
  void Function(_i2.Object)? setRelaunchData,
  _i2.Object Function()? getRelaunchData,
  _i2.Future<_i2.Object> Function()? getCSSAsync,
  _i3.FrameNode? Function()? getTopLevelFrame,
}) =>
    DocumentNode._(
      type: type,
      children: children ?? _i7.undefined,
      documentColorProfile: documentColorProfile?.name ?? _i7.undefined,
      appendChild: appendChild == null ? null : _i5.allowInterop(appendChild),
      insertChild: insertChild == null ? null : _i5.allowInterop(insertChild),
      findChildren:
          findChildren == null ? null : _i5.allowInterop(findChildren),
      findChild: findChild == null
          ? null
          : _i5.allowInterop((p0) => () => findChild(p0) ?? _i7.undefined),
      findAll: findAll == null ? null : _i5.allowInterop(findAll),
      findOne: findOne == null ? null : _i5.allowInterop(findOne),
      findAllWithCriteria: findAllWithCriteria == null
          ? null
          : _i5.allowInterop(findAllWithCriteria),
      findWidgetNodesByWidgetId: findWidgetNodesByWidgetId == null
          ? null
          : _i5.allowInterop(findWidgetNodesByWidgetId),
      id: id,
      parent: parent ?? _i7.undefined,
      name: name,
      removed: removed,
      isAsset: isAsset,
      toString$: toString$ == null ? null : _i5.allowInterop(toString$),
      remove: remove == null ? null : _i5.allowInterop(remove),
      setRelaunchData:
          setRelaunchData == null ? null : _i5.allowInterop(setRelaunchData),
      getRelaunchData:
          getRelaunchData == null ? null : _i5.allowInterop(getRelaunchData),
      getCSSAsync: getCSSAsync == null ? null : _i5.allowInterop(getCSSAsync),
      getTopLevelFrame: getTopLevelFrame == null
          ? null
          : _i5.allowInterop(() => () => getTopLevelFrame() ?? _i7.undefined),
    );