createRenderer method

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

Create the funnel series renderer.

Implementation

@override
FunnelSeriesRenderer<T, D> createRenderer() {
  FunnelSeriesRenderer<T, D>? renderer;
  if (onCreateRenderer != null) {
    renderer = onCreateRenderer!(this) as FunnelSeriesRenderer<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 ?? FunnelSeriesRenderer<T, D>();
}