y property Null safety

dynamic y

Specifies the y-values as pixel, point or percentage values based on the coordinateUnit.

Percentage value refers to the overall height of the chart. i.e. 100% is equal to the height of the chart.

Defaults to null.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           annotations: <CartesianChartAnnotation>[
                   widget: Container(
                   child: const Text('Annotation')),
                   x: 3,
                   y: 60


final dynamic y;