lineAnnotation function

Widget 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 LineAnnotation widget.

Implementation

Widget lineAnnotation({
  Key? key,
  required dynamic scale,
  required dynamic value,
  required double width,
  required double height,
  LineAnnotationConfig config = const LineAnnotationConfig(),
  String? label,
  TextStyle? labelStyle,
  Offset labelOffset = const Offset(4, -4),
}) {
  return LineAnnotation(
    key: key,
    scale: scale,
    value: value,
    width: width,
    height: height,
    config: config,
    label: label,
    labelStyle: labelStyle,
    labelOffset: labelOffset,
  );
}