build method

PathPainter? build()

Implementation

PathPainter? build() {
  if (isUnderlay) {
    return PaintedPainter(animation, pathSegments, customDimensions, paints,
        onFinishFrame, scaleToViewport, debugOptions);
  }
  switch (lineAnimation) {
    case LineAnimation.oneByOne:
      return OneByOnePainter(animation, pathSegments, customDimensions,
          paints, onFinishFrame, scaleToViewport, debugOptions);
    case LineAnimation.allAtOnce:
      return AllAtOncePainter(animation, pathSegments, customDimensions,
          paints, onFinishFrame, scaleToViewport, debugOptions);
    default:
      return null;
  }
}