widget property

Widget? widget
final

Considers any widget as annotation.

Defaults to null

Widget build(BuildContext context) {
   return Container(
       child: SfCircularChart(
           annotations: <CircularChartAnnotation>[
               CircularChartAnnotation(
                   child: Container(
                    child:Text('Annotation')),
             ),
            ],
       ));
}

Implementation

final Widget? widget;