createRenderer method

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

Implementation

@override
PyramidSeriesRenderer<T, D> createRenderer() {
  PyramidSeriesRenderer<T, D>? renderer;
  if (onCreateRenderer != null) {
    renderer = onCreateRenderer!(this) as PyramidSeriesRenderer<T, D>?;
    assert(
        renderer != null,
        'This onCreateRenderer callback function should return value as '
        'extends from ChartSeriesRenderer class and should not be return '
        'value as null');
  }
  return renderer ?? PyramidSeriesRenderer<T, D>();
}