createRenderer method

  1. @override
RangeAreaSeriesRenderer<T, D> createRenderer()
override

Create the range area series renderer.

Implementation

@override
RangeAreaSeriesRenderer<T, D> createRenderer() {
  RangeAreaSeriesRenderer<T, D> seriesRenderer;
  if (onCreateRenderer != null) {
    seriesRenderer = onCreateRenderer!(this) as RangeAreaSeriesRenderer<T, D>;
    // ignore: unnecessary_null_comparison
    return seriesRenderer;
  }
  return RangeAreaSeriesRenderer<T, D>();
}