createRenderer method

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

To create a stacked line series renderer.

Implementation

@override
StackedLineSeriesRenderer<T, D> createRenderer() {
  StackedLineSeriesRenderer<T, D> stackedLineSeriesRenderer;
  if (onCreateRenderer != null) {
    stackedLineSeriesRenderer =
        onCreateRenderer!(this) as StackedLineSeriesRenderer<T, D>;
    return stackedLineSeriesRenderer;
  }
  return StackedLineSeriesRenderer<T, D>();
}