GeometryMixin constructor
GeometryMixin({
- Object? strokeCap,
- num? strokeMiterLimit,
- VectorPaths? fillGeometry,
- VectorNode? outlineStroke()?,
- ReadonlyArray<
Object> ? strokes, - String? strokeStyleId,
- Object? strokeWeight,
- Object? strokeJoin,
- StrokeAlign? strokeAlign,
- ReadonlyArray<
num> ? dashPattern, - VectorPaths? strokeGeometry,
- Future<
void> setStrokeStyleIdAsync()?, - Object? fills,
- Object? fillStyleId,
- Future<
void> setFillStyleIdAsync()?,
Implementation
factory GeometryMixin({
_i2.Object? strokeCap,
_i2.num? strokeMiterLimit,
_i3.VectorPaths? fillGeometry,
_i3.VectorNode? Function()? outlineStroke,
_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,
_i2.Object? fills,
_i2.Object? fillStyleId,
_i2.Future<void> Function(_i2.String)? setFillStyleIdAsync,
}) =>
GeometryMixin._(
strokeCap: strokeCap ?? _i7.undefined,
strokeMiterLimit: strokeMiterLimit,
fillGeometry: fillGeometry ?? _i7.undefined,
outlineStroke: outlineStroke == null
? null
: _i5.allowInterop(() => () => outlineStroke() ?? _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),
fills: fills ?? _i7.undefined,
fillStyleId: fillStyleId ?? _i7.undefined,
setFillStyleIdAsync: setFillStyleIdAsync == null
? null
: _i5.allowInterop(setFillStyleIdAsync),
);