setupValue method

void setupValue({
  1. required AnimationController controller,
  2. required Color color,
  3. required double startAngle,
  4. required double sweepAngle,
  5. Color? initialColor,
  6. double? initialStartAngle,
  7. double? initialSweepAngle,
  8. ChartGroupPieDataItem? oldItem,
})

Initialize animations.

Implementation

void setupValue({
  required AnimationController controller,
  required Color color,
  required double startAngle,
  required double sweepAngle,
  Color? initialColor,
  double? initialStartAngle,
  double? initialSweepAngle,
  ChartGroupPieDataItem? oldItem,
}) {
  _value.setup(
    color: color,
    controller: controller,
    initialColor: initialColor,
    initialStartAngle: initialStartAngle,
    initialSweepAngle: initialSweepAngle,
    oldAnimation: oldItem?._value,
    startAngle: startAngle,
    sweepAngle: sweepAngle,
  );
}