AnyContour constructor
AnyContour({
- required AnyFill? background,
- required AnyShapeBase backgroundBase,
- required AnyShapeBase clipBase,
- required AnyShapeBase shadowBase,
- required List<
AnyPoint> points,
Implementation
AnyContour({
required this.background,
required this.backgroundBase,
required this.clipBase,
required this.shadowBase,
required List<AnyPoint> points,
}) {
final contourPoints = _withoutSkippedPoints(points);
if (contourPoints.length < 3) {
throw ArgumentError('At least 3 points are required to build a contour.');
}
_prepare(contourPoints);
}