CartesianChartAnnotation constructor

const CartesianChartAnnotation({
  1. required Widget widget,
  2. required dynamic x,
  3. required dynamic y,
  4. CoordinateUnit coordinateUnit = CoordinateUnit.logicalPixel,
  5. String? xAxisName,
  6. String? yAxisName,
  7. AnnotationRegion region = AnnotationRegion.chart,
  8. ChartClipBehavior clip = ChartClipBehavior.clip,
  9. ChartAlignment horizontalAlignment = ChartAlignment.center,
  10. ChartAlignment verticalAlignment = ChartAlignment.center,
})

Creating an argument constructor of CartesianChartAnnotation class.

Implementation

const CartesianChartAnnotation({
  required this.widget,
  required this.x,
  required this.y,
  this.coordinateUnit = CoordinateUnit.logicalPixel,
  this.xAxisName,
  this.yAxisName,
  this.region = AnnotationRegion.chart,
  this.clip = ChartClipBehavior.clip,
  this.horizontalAlignment = ChartAlignment.center,
  this.verticalAlignment = ChartAlignment.center,
});