widget property

Widget? widget
final

Considers any widget as annotation.

Defaults to null.

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

Implementation

final Widget? widget;