createRenderer method

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

Create the range column series renderer.

Implementation

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