RectangleNode constructor
RectangleNode({
- String? type,
- RectangleNode clone()?,
- Constraints? constraints,
- Object? cornerRadius,
- num? cornerSmoothing,
- num? topLeftRadius,
- num? topRightRadius,
- num? bottomLeftRadius,
- num? bottomRightRadius,
- num? strokeTopWeight,
- num? strokeBottomWeight,
- num? strokeLeftWeight,
- num? strokeRightWeight,
- ReadonlyArray<
Annotation> ? annotations, - Vector? targetAspectRatio,
- void lockAspectRatio()?,
- void unlockAspectRatio()?,
Implementation
factory RectangleNode({
_i2.String? type,
_i3.RectangleNode Function()? clone,
_i3.Constraints? constraints,
_i2.Object? cornerRadius,
_i2.num? cornerSmoothing,
_i2.num? topLeftRadius,
_i2.num? topRightRadius,
_i2.num? bottomLeftRadius,
_i2.num? bottomRightRadius,
_i2.num? strokeTopWeight,
_i2.num? strokeBottomWeight,
_i2.num? strokeLeftWeight,
_i2.num? strokeRightWeight,
_i4.ReadonlyArray<_i3.Annotation>? annotations,
_i3.Vector? targetAspectRatio,
void Function()? lockAspectRatio,
void Function()? unlockAspectRatio,
}) =>
RectangleNode._(
type: type,
clone: clone == null ? null : _i5.allowInterop(clone),
constraints: constraints ?? _i7.undefined,
cornerRadius: cornerRadius ?? _i7.undefined,
cornerSmoothing: cornerSmoothing,
topLeftRadius: topLeftRadius,
topRightRadius: topRightRadius,
bottomLeftRadius: bottomLeftRadius,
bottomRightRadius: bottomRightRadius,
strokeTopWeight: strokeTopWeight,
strokeBottomWeight: strokeBottomWeight,
strokeLeftWeight: strokeLeftWeight,
strokeRightWeight: strokeRightWeight,
annotations: annotations ?? _i7.undefined,
targetAspectRatio: targetAspectRatio ?? _i7.undefined,
lockAspectRatio:
lockAspectRatio == null ? null : _i5.allowInterop(lockAspectRatio),
unlockAspectRatio: unlockAspectRatio == null
? null
: _i5.allowInterop(unlockAspectRatio),
);