ShapeWithTextNode constructor

ShapeWithTextNode({
  1. String? type,
  2. ShapeType? shapeType,
  3. TextSublayerNode? text,
  4. num? cornerRadius,
  5. num? rotation,
  6. void resize(
    1. num,
    2. num
    )?,
  7. void rescale(
    1. num
    )?,
  8. ShapeWithTextNode clone()?,
  9. Object? fills,
  10. Object? fillStyleId,
  11. Future<void> setFillStyleIdAsync(
    1. String
    )?,
  12. num? opacity,
  13. BlendMode? blendMode,
  14. ReadonlyArray<Object>? strokes,
  15. String? strokeStyleId,
  16. Object? strokeWeight,
  17. Object? strokeJoin,
  18. StrokeAlign? strokeAlign,
  19. ReadonlyArray<num>? dashPattern,
  20. VectorPaths? strokeGeometry,
  21. Future<void> setStrokeStyleIdAsync(
    1. String
    )?,
})

Implementation

factory ShapeWithTextNode({
  _i2.String? type,
  _i3.ShapeType? shapeType,
  _i3.TextSublayerNode? text,
  _i2.num? cornerRadius,
  _i2.num? rotation,
  void Function(
    _i2.num,
    _i2.num,
  )? resize,
  void Function(_i2.num)? rescale,
  _i3.ShapeWithTextNode Function()? clone,
  _i2.Object? fills,
  _i2.Object? fillStyleId,
  _i2.Future<void> Function(_i2.String)? setFillStyleIdAsync,
  _i2.num? opacity,
  _i3.BlendMode? blendMode,
  _i4.ReadonlyArray<_i2.Object>? strokes,
  _i2.String? strokeStyleId,
  _i2.Object? strokeWeight,
  _i2.Object? strokeJoin,
  _i3.StrokeAlign? strokeAlign,
  _i4.ReadonlyArray<_i2.num>? dashPattern,
  _i3.VectorPaths? strokeGeometry,
  _i2.Future<void> Function(_i2.String)? setStrokeStyleIdAsync,
}) =>
    ShapeWithTextNode._(
      type: type,
      shapeType: shapeType?.name ?? _i7.undefined,
      text: text ?? _i7.undefined,
      cornerRadius: cornerRadius,
      rotation: rotation,
      resize: resize == null ? null : _i5.allowInterop(resize),
      rescale: rescale == null ? null : _i5.allowInterop(rescale),
      clone: clone == null ? null : _i5.allowInterop(clone),
      fills: fills ?? _i7.undefined,
      fillStyleId: fillStyleId ?? _i7.undefined,
      setFillStyleIdAsync: setFillStyleIdAsync == null
          ? null
          : _i5.allowInterop(setFillStyleIdAsync),
      opacity: opacity,
      blendMode: blendMode?.name ?? _i7.undefined,
      strokes: strokes ?? _i7.undefined,
      strokeStyleId: strokeStyleId,
      strokeWeight: strokeWeight ?? _i7.undefined,
      strokeJoin: strokeJoin ?? _i7.undefined,
      strokeAlign: strokeAlign?.name ?? _i7.undefined,
      dashPattern: dashPattern ?? _i7.undefined,
      strokeGeometry: strokeGeometry ?? _i7.undefined,
      setStrokeStyleIdAsync: setStrokeStyleIdAsync == null
          ? null
          : _i5.allowInterop(setStrokeStyleIdAsync),
    );