createRenderer method

StackedBar100SeriesRenderer createRenderer(
  1. ChartSeries<T, D> series
)

Create the stacked area series renderer.

Implementation

StackedBar100SeriesRenderer createRenderer(ChartSeries<T, D> series) {
  StackedBar100SeriesRenderer stackedBarSeriesRenderer;
  if (onCreateRenderer != null) {
    stackedBarSeriesRenderer =
        onCreateRenderer!(series) as StackedBar100SeriesRenderer;
    // ignore: unnecessary_null_comparison
    assert(stackedBarSeriesRenderer != null,
        'This onCreateRenderer callback function should return value as extends from ChartSeriesRenderer class and should not be return value as null');
    return stackedBarSeriesRenderer;
  }
  return StackedBar100SeriesRenderer();
}