SectionNode constructor

SectionNode({
  1. String? type,
  2. bool? sectionContentsHidden,
  3. SectionNode clone()?,
  4. void resizeWithoutConstraints(
    1. num,
    2. num
    )?,
  5. ReadonlyArray<SceneNode>? children,
  6. void appendChild(
    1. SceneNode
    )?,
  7. void insertChild(
    1. num,
    2. SceneNode
    )?,
  8. List<SceneNode> findChildren([
    1. bool (
      1. SceneNode
      )?
    ])?,
  9. SceneNode? findChild(
    1. bool (
      1. SceneNode
      )
    )?,
  10. List<SceneNode> findAll([
    1. bool (
      1. SceneNode
      )?
    ])?,
  11. SceneNode? findOne(
    1. bool (
      1. SceneNode
      )
    )?,
  12. Array<Object> findAllWithCriteria<T extends List>(
    1. FindAllCriteria<T>
    )?,
  13. Array<WidgetNode> findWidgetNodesByWidgetId(
    1. String
    )?,
  14. Object? fills,
  15. Object? fillStyleId,
  16. Future<void> setFillStyleIdAsync(
    1. String
    )?,
  17. DevStatus? devStatus,
  18. Vector? targetAspectRatio,
  19. void lockAspectRatio()?,
  20. void unlockAspectRatio()?,
})

Implementation

factory SectionNode({
  _i2.String? type,
  _i2.bool? sectionContentsHidden,
  _i3.SectionNode Function()? clone,
  void Function(
    _i2.num,
    _i2.num,
  )? resizeWithoutConstraints,
  _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,
  _i2.Object? fills,
  _i2.Object? fillStyleId,
  _i2.Future<void> Function(_i2.String)? setFillStyleIdAsync,
  _i3.DevStatus? devStatus,
  _i3.Vector? targetAspectRatio,
  void Function()? lockAspectRatio,
  void Function()? unlockAspectRatio,
}) =>
    SectionNode._(
      type: type,
      sectionContentsHidden: sectionContentsHidden,
      clone: clone == null ? null : _i5.allowInterop(clone),
      resizeWithoutConstraints: resizeWithoutConstraints == null
          ? null
          : _i5.allowInterop(resizeWithoutConstraints),
      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),
      fills: fills ?? _i7.undefined,
      fillStyleId: fillStyleId ?? _i7.undefined,
      setFillStyleIdAsync: setFillStyleIdAsync == null
          ? null
          : _i5.allowInterop(setFillStyleIdAsync),
      devStatus: devStatus ?? _i7.undefined,
      targetAspectRatio: targetAspectRatio ?? _i7.undefined,
      lockAspectRatio:
          lockAspectRatio == null ? null : _i5.allowInterop(lockAspectRatio),
      unlockAspectRatio: unlockAspectRatio == null
          ? null
          : _i5.allowInterop(unlockAspectRatio),
    );