coordinateUnit property Null safety

CoordinateUnit coordinateUnit
final

Specifies the coordinate units for placing the annotation in either logicalPixel or point.

Defaults to CoordinateUnit.logicalPixel

Also refer CoordinateUnit

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           annotations: <CartesianChartAnnotation>[
               CartesianChartAnnotation(
                   child: Container(
                   child: const Text('Empty data')),
                   coordinateUnit: CoordinateUnit.point,
                   region: AnnotationRegion.chartArea,
                   x: 3.5,
                   y: 60
             ),
            ],
       ));
}

Implementation

final CoordinateUnit coordinateUnit;