x property Null safety

dynamic x

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

Percentage value refers to the overall width of the chart. i.e. 100% is equal to the width 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 x;