AnimatedPointConnection.fromPointConnection constructor

AnimatedPointConnection.fromPointConnection({
  1. required PointConnection pointConnection,
  2. double animationOffset = 0.0,
  3. double animationProgress = 0.0,
})

Creates a new AnimatedPointConnection instance from an existing PointConnection.

The pointConnection parameter represents the existing PointConnection to be converted to an AnimatedPointConnection. The animationOffset parameter represents the offset of the animation. The animationProgress parameter represents the progress of the animation.

Example usage:

AnimatedPointConnection.fromPointConnection(
 pointConnection: pointConnection,
animationOffset: 0.0,
animationProgress: 0.0,
);

Implementation

AnimatedPointConnection.fromPointConnection({
  required PointConnection pointConnection,
  this.animationOffset = 0.0,
  this.animationProgress = 0.0,
}) : super(
        start: pointConnection.start,
        labelOffset: pointConnection.labelOffset,
        end: pointConnection.end,
        id: pointConnection.id,
        curveScale: pointConnection.curveScale,
        label: pointConnection.label,
        labelTextStyle: pointConnection.labelTextStyle,
        isMoving: pointConnection.isMoving,
        isLabelVisible: pointConnection.isLabelVisible,
        style: pointConnection.style,
        onTap: pointConnection.onTap,
        onHover: pointConnection.onHover,
        labelBuilder: pointConnection.labelBuilder,
      );