widget property
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;