createRenderer method

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

Create the stacked area series renderer.

Implementation

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