AnyContour constructor

AnyContour({
  1. required AnyFill? background,
  2. required AnyShapeBase backgroundBase,
  3. required AnyShapeBase clipBase,
  4. required AnyShapeBase shadowBase,
  5. 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);
}