onPostLayout method

void onPostLayout(
  1. Map<String, List<MutableSeries<D>>> rendererToSeriesList
)

Implementation

void onPostLayout(Map<String, List<MutableSeries<D>>> rendererToSeriesList) {
  // Update each renderer with
  rendererToSeriesList.forEach((rendererId, seriesList) {
    getSeriesRenderer(rendererId).update(seriesList, animatingThisDraw);
  });

  // Request animation
  if (animatingThisDraw) {
    animationPercent = 0.0;
    context.requestAnimation(transition);
  } else {
    animationPercent = 1.0;
    context.requestPaint();
  }

  _animationsTemporarilyDisabled = false;
}