createRenderer method
Create the area series renderer.
Implementation
@override
AreaSeriesRenderer<T, D> createRenderer() {
AreaSeriesRenderer<T, D>? renderer;
if (onCreateRenderer != null) {
renderer = onCreateRenderer!(this) as AreaSeriesRenderer<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 ?? AreaSeriesRenderer<T, D>();
}