RectangleNode constructor

RectangleNode({
  1. String? type,
  2. RectangleNode clone()?,
  3. Constraints? constraints,
  4. Object? cornerRadius,
  5. num? cornerSmoothing,
  6. num? topLeftRadius,
  7. num? topRightRadius,
  8. num? bottomLeftRadius,
  9. num? bottomRightRadius,
  10. num? strokeTopWeight,
  11. num? strokeBottomWeight,
  12. num? strokeLeftWeight,
  13. num? strokeRightWeight,
  14. ReadonlyArray<Annotation>? annotations,
  15. Vector? targetAspectRatio,
  16. void lockAspectRatio()?,
  17. 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),
    );