LineAnnotation constructor

const LineAnnotation({
  1. Key? key,
  2. required dynamic scale,
  3. required dynamic value,
  4. required double width,
  5. required double height,
  6. LineAnnotationConfig config = const LineAnnotationConfig(),
  7. String? label,
  8. TextStyle? labelStyle,
  9. Offset labelOffset = const Offset(4, -4),
})

Creates a line annotation.

Implementation

const LineAnnotation({
  super.key,
  required super.scale,
  required this.value,
  required super.width,
  required super.height,
  this.config = const LineAnnotationConfig(),
  this.label,
  this.labelStyle,
  this.labelOffset = const Offset(4, -4),
});