redraw method

void redraw({
  1. bool skipAnimation = false,
  2. bool skipLayout = false,
})
inherited

Redraws and re-lays-out the chart using the previously rendered layout dimensions.

Implementation

void redraw({bool skipAnimation = false, bool skipLayout = false}) {
  drawInternal(_originalSeriesList,
      skipAnimation: skipAnimation, skipLayout: skipLayout);

  // Trigger layout and actually redraw the chart.
  if (!skipLayout) {
    measure(_chartWidth!, _chartHeight!);
    layout(_chartWidth!, _chartHeight!);
  } else {
    onSkipLayout();
  }
}