AreaAnnotation constructor

const AreaAnnotation({
  1. Key? key,
  2. required dynamic scale,
  3. required dynamic startValue,
  4. required dynamic endValue,
  5. required double width,
  6. required double height,
  7. AreaAnnotationConfig config = const AreaAnnotationConfig(),
  8. String? label,
  9. TextStyle? labelStyle,
  10. Alignment labelAlignment = Alignment.center,
})

Creates an area annotation.

Implementation

const AreaAnnotation({
  super.key,
  required super.scale,
  required this.startValue,
  required this.endValue,
  required super.width,
  required super.height,
  this.config = const AreaAnnotationConfig(),
  this.label,
  this.labelStyle,
  this.labelAlignment = Alignment.center,
});