SectionNode constructor
SectionNode({
- String? type,
- bool? sectionContentsHidden,
- SectionNode clone()?,
- void resizeWithoutConstraints()?,
- ReadonlyArray<
SceneNode> ? children, - void appendChild()?,
- void insertChild()?,
- List<
SceneNode> findChildren([])?, - SceneNode? findChild()?,
- List<
SceneNode> findAll([])?, - SceneNode? findOne()?,
- Array<
Object> findAllWithCriteria<T extends List>()?, - Array<
WidgetNode> findWidgetNodesByWidgetId()?, - Object? fills,
- Object? fillStyleId,
- Future<
void> setFillStyleIdAsync()?, - DevStatus? devStatus,
- Vector? targetAspectRatio,
- void lockAspectRatio()?,
- 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),
);