BooleanOperationNode constructor

BooleanOperationNode({
  1. String? type,
  2. BooleanOperation? booleanOperation,
  3. BooleanOperationNode clone()?,
  4. ReadonlyArray<SceneNode>? children,
  5. void appendChild(
    1. SceneNode
    )?,
  6. void insertChild(
    1. num,
    2. SceneNode
    )?,
  7. List<SceneNode> findChildren([
    1. bool (
      1. SceneNode
      )?
    ])?,
  8. SceneNode? findChild(
    1. bool (
      1. SceneNode
      )
    )?,
  9. List<SceneNode> findAll([
    1. bool (
      1. SceneNode
      )?
    ])?,
  10. SceneNode? findOne(
    1. bool (
      1. SceneNode
      )
    )?,
  11. Array<Object> findAllWithCriteria<T extends List>(
    1. FindAllCriteria<T>
    )?,
  12. Array<WidgetNode> findWidgetNodesByWidgetId(
    1. String
    )?,
  13. Object? cornerRadius,
  14. num? cornerSmoothing,
  15. bool? expanded,
  16. Vector? targetAspectRatio,
  17. void lockAspectRatio()?,
  18. void unlockAspectRatio()?,
})

Implementation

factory BooleanOperationNode({
  _i2.String? type,
  _i3.BooleanOperation? booleanOperation,
  _i3.BooleanOperationNode Function()? clone,
  _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? cornerRadius,
  _i2.num? cornerSmoothing,
  _i2.bool? expanded,
  _i3.Vector? targetAspectRatio,
  void Function()? lockAspectRatio,
  void Function()? unlockAspectRatio,
}) =>
    BooleanOperationNode._(
      type: type,
      booleanOperation: booleanOperation?.name ?? _i7.undefined,
      clone: clone == null ? null : _i5.allowInterop(clone),
      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),
      cornerRadius: cornerRadius ?? _i7.undefined,
      cornerSmoothing: cornerSmoothing,
      expanded: expanded,
      targetAspectRatio: targetAspectRatio ?? _i7.undefined,
      lockAspectRatio:
          lockAspectRatio == null ? null : _i5.allowInterop(lockAspectRatio),
      unlockAspectRatio: unlockAspectRatio == null
          ? null
          : _i5.allowInterop(unlockAspectRatio),
    );