createRenderer method

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

Create the hilo open close series renderer.

Implementation

HiloOpenCloseSeriesRenderer createRenderer(ChartSeries<T, D> series) {
  HiloOpenCloseSeriesRenderer seriesRenderer;
  if (onCreateRenderer != null) {
    seriesRenderer = onCreateRenderer!(series) as HiloOpenCloseSeriesRenderer;
    // 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 HiloOpenCloseSeriesRenderer();
}