onCreateAxisRenderer property

GaugeAxisRendererFactory? onCreateAxisRenderer
final

The callback that is called when the custom renderer for the custom axis is created. and it is not applicable for built-in axis

The corresponding axis is passed as the argument to the callback in order to access the axis property

Widget build(BuildContext context) {
   return Container(
       child: SfRadialGauge(
         axes:<RadialAxis>[RadialAxis(
          onCreateAxisRenderer: handleCreateAxisRenderer,
           )]
       ));
}

Called before creating the renderer
GaugeAxisRenderer handleCreateAxisRenderer(){
final _CustomAxisRenderer _customAxisRenderer = _CustomAxisRenderer();
return _customAxisRenderer;
}

class _CustomAxisRenderer extends RadialAxisRenderer{
_CustomAxisRenderer class implementation
}

Implementation

// ignore: strict_raw_type
final GaugeAxisRendererFactory? onCreateAxisRenderer;