PageNode constructor

PageNode({
  1. String? type,
  2. ReadonlyArray<Guide>? guides,
  3. ReadonlyArray<SceneNode>? selection,
  4. IInline81? selectedTextRange,
  5. ReadonlyArray<IInline82>? flowStartingPoints,
  6. ReadonlyArray<Object>? backgrounds,
  7. ReadonlyArray<Object>? prototypeBackgrounds,
  8. BaseNodeMixin? prototypeStartNode,
  9. bool? isPageDivider,
  10. SlideNode? focusedSlide,
  11. PageNode clone()?,
  12. Future<void> loadAsync()?,
  13. void on(
    1. String,
    2. void (
      1. NodeChangeEvent
      )
    )?,
  14. void once(
    1. String,
    2. void (
      1. NodeChangeEvent
      )
    )?,
  15. void off(
    1. String,
    2. void (
      1. NodeChangeEvent
      )
    )?,
  16. String? id,
  17. _Intersection7? parent,
  18. String? name,
  19. bool? removed,
  20. bool? isAsset,
  21. String toString$()?,
  22. void remove()?,
  23. void setRelaunchData(
    1. Object
    )?,
  24. Object getRelaunchData()?,
  25. Future<Object> getCSSAsync()?,
  26. FrameNode? getTopLevelFrame()?,
  27. ReadonlyArray<SceneNode>? children,
  28. void appendChild(
    1. SceneNode
    )?,
  29. void insertChild(
    1. num,
    2. SceneNode
    )?,
  30. List<SceneNode> findChildren([
    1. bool (
      1. SceneNode
      )?
    ])?,
  31. SceneNode? findChild(
    1. bool (
      1. SceneNode
      )
    )?,
  32. List<SceneNode> findAll([
    1. bool (
      1. SceneNode
      )?
    ])?,
  33. SceneNode? findOne(
    1. bool (
      1. SceneNode
      )
    )?,
  34. Array<Object> findAllWithCriteria<T extends List>(
    1. FindAllCriteria<T>
    )?,
  35. Array<WidgetNode> findWidgetNodesByWidgetId(
    1. String
    )?,
  36. ReadonlyArray<Object>? exportSettings,
  37. Object? explicitVariableModes,
  38. List<Measurement> getMeasurements()?,
  39. List<Measurement> getMeasurementsForNode(
    1. SceneNode
    )?,
  40. Measurement addMeasurement(
    1. dynamic,
    2. dynamic, [
    3. dynamic
    ])?,
  41. Measurement editMeasurement(
    1. String,
    2. dynamic
    )?,
  42. void deleteMeasurement(
    1. String
    )?,
})

Implementation

factory PageNode({
  _i2.String? type,
  _i4.ReadonlyArray<_i3.Guide>? guides,
  _i4.ReadonlyArray<_i3.SceneNode>? selection,
  _i3.IInline81? selectedTextRange,
  _i4.ReadonlyArray<_i3.IInline82>? flowStartingPoints,
  _i4.ReadonlyArray<_i2.Object>? backgrounds,
  _i4.ReadonlyArray<_i2.Object>? prototypeBackgrounds,
  _i3.BaseNodeMixin? prototypeStartNode,
  _i2.bool? isPageDivider,
  _i3.SlideNode? focusedSlide,
  _i3.PageNode Function()? clone,
  _i2.Future<void> Function()? loadAsync,
  void Function(
    _i2.String,
    void Function(_i3.NodeChangeEvent),
  )? on,
  void Function(
    _i2.String,
    void Function(_i3.NodeChangeEvent),
  )? once,
  void Function(
    _i2.String,
    void Function(_i3.NodeChangeEvent),
  )? off,
  _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,
  _i4.ReadonlyArray<_i3.SceneNode>? children,
  void Function(_i3.SceneNode)? appendChild,
  void Function(
    _i2.num,
    _i3.SceneNode,
  )? insertChild,
  _i2.List<_i3.SceneNode> Function([_i2.bool Function(_i3.SceneNode)?])?
      findChildren,
  _i3.SceneNode? Function(_i2.bool Function(_i3.SceneNode))? findChild,
  _i2.List<_i3.SceneNode> Function([_i2.bool Function(_i3.SceneNode)?])?
      findAll,
  _i3.SceneNode? Function(_i2.bool Function(_i3.SceneNode))? findOne,
  _i4.Array<_i2.Object> Function<T extends _i2.List<_i2.dynamic>>(
          _i3.FindAllCriteria<T>)?
      findAllWithCriteria,
  _i4.Array<_i3.WidgetNode> Function(_i2.String)? findWidgetNodesByWidgetId,
  _i4.ReadonlyArray<_i2.Object>? exportSettings,
  _i2.Object? explicitVariableModes,
  _i2.List<_i3.Measurement> Function()? getMeasurements,
  _i2.List<_i3.Measurement> Function(_i3.SceneNode)? getMeasurementsForNode,
  _i3.Measurement Function(
    _i2.dynamic,
    _i2.dynamic, [
    _i2.dynamic,
  ])? addMeasurement,
  _i3.Measurement Function(
    _i2.String,
    _i2.dynamic,
  )? editMeasurement,
  void Function(_i2.String)? deleteMeasurement,
}) =>
    PageNode._(
      type: type,
      guides: guides ?? _i7.undefined,
      selection: selection ?? _i7.undefined,
      selectedTextRange: selectedTextRange ?? _i7.undefined,
      flowStartingPoints: flowStartingPoints ?? _i7.undefined,
      backgrounds: backgrounds ?? _i7.undefined,
      prototypeBackgrounds: prototypeBackgrounds ?? _i7.undefined,
      prototypeStartNode: prototypeStartNode ?? _i7.undefined,
      isPageDivider: isPageDivider,
      focusedSlide: focusedSlide ?? _i7.undefined,
      clone: clone == null ? null : _i5.allowInterop(clone),
      loadAsync: loadAsync == null ? null : _i5.allowInterop(loadAsync),
      on: on == null ? null : _i5.allowInterop(on),
      once: once == null ? null : _i5.allowInterop(once),
      off: off == null ? null : _i5.allowInterop(off),
      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),
      children: children ?? _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 ?? _i7.undefined),
      findAll: findAll == null ? null : _i5.allowInterop(findAll),
      findOne: findOne == null
          ? null
          : _i5.allowInterop(
              (p0) => () => findOne(p0) ?? _i7.undefined ?? _i7.undefined),
      findAllWithCriteria: findAllWithCriteria == null
          ? null
          : _i5.allowInterop(findAllWithCriteria),
      findWidgetNodesByWidgetId: findWidgetNodesByWidgetId == null
          ? null
          : _i5.allowInterop(findWidgetNodesByWidgetId),
      exportSettings: exportSettings ?? _i7.undefined,
      explicitVariableModes: explicitVariableModes ?? _i7.undefined,
      getMeasurements:
          getMeasurements == null ? null : _i5.allowInterop(getMeasurements),
      getMeasurementsForNode: getMeasurementsForNode == null
          ? null
          : _i5.allowInterop(getMeasurementsForNode),
      addMeasurement:
          addMeasurement == null ? null : _i5.allowInterop(addMeasurement),
      editMeasurement:
          editMeasurement == null ? null : _i5.allowInterop(editMeasurement),
      deleteMeasurement: deleteMeasurement == null
          ? null
          : _i5.allowInterop(deleteMeasurement),
    );