PathPainter constructor

PathPainter(
  1. Animation<double> animation,
  2. List<PathSegment> pathSegments,
  3. Size? customDimensions,
  4. List<Paint> paints,
  5. PaintedSegmentCallback onFinishCallback,
  6. bool scaleToViewport,
  7. DebugOptions debugOptions,
)

Implementation

PathPainter(
    this.animation,
    this.pathSegments,
    this.customDimensions,
    this.paints,
    this.onFinishCallback,
    this.scaleToViewport,
    this.debugOptions)
    : canPaint = false,
      super(repaint: animation) {
  calculateBoundingBox();
}