onCreateShader property

CircularShaderCallback? onCreateShader
final

Fills the data points with the gradient and image shaders.

The data points of pie, doughnut and radial bar charts can be filled with gradient (linear, radial and sweep gradient) and image shaders.

All the data points are together considered as a single segment and the shader is applied commonly.

Defaults to null.

Widget build(BuildContext context) {
   return Container(
       child: SfCircularChart(
           onCreateShader: (ChartShaderDetails chartShaderDetails) => shader,
       ));
}

Implementation

final CircularShaderCallback? onCreateShader;