ShapeWithTextNode constructor
ShapeWithTextNode({
- String? type,
- ShapeType? shapeType,
- TextSublayerNode? text,
- num? cornerRadius,
- num? rotation,
- void resize()?,
- void rescale()?,
- ShapeWithTextNode clone()?,
- Object? fills,
- Object? fillStyleId,
- Future<
void> setFillStyleIdAsync()?, - num? opacity,
- BlendMode? blendMode,
- ReadonlyArray<
Object> ? strokes, - String? strokeStyleId,
- Object? strokeWeight,
- Object? strokeJoin,
- StrokeAlign? strokeAlign,
- ReadonlyArray<
num> ? dashPattern, - VectorPaths? strokeGeometry,
- Future<
void> setStrokeStyleIdAsync()?,
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),
);