createRenderer method

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

Create the line series renderer.

Implementation

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