onRealTimeAnimationUpdate method

  1. @override
void onRealTimeAnimationUpdate()
override

Implementation

@override
void onRealTimeAnimationUpdate() {
  super.onRealTimeAnimationUpdate();
  if (segments.isNotEmpty) {
    final ChartSegment segment = segments[0];
    segment.animationFactor = segmentAnimationFactor;
    segment.transformValues();
    customizeSegment(segment);
  }
  markNeedsPaint();
}