annotations property Null safety

List<GaugeAnnotation>? annotations
final

Add a list of gauge annotation to the radial gauge and customize each annotation by adding it to the annotations collection.

Also refer GaugeAnnotation

Widget build(BuildContext context) {
   return Container(
       child: SfRadialGauge(
         axes:<RadialAxis>[RadialAxis(
           annotations: <GaugeAnnotation>[
           GaugeAnnotation(widget: Text('Annotation'))
           ]
           )]
       ));
}

Implementation

final List<GaugeAnnotation>? annotations;