areaAnnotation function

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

Implementation

Widget areaAnnotation({
  Key? key,
  required dynamic scale,
  required dynamic startValue,
  required dynamic endValue,
  required double width,
  required double height,
  AreaAnnotationConfig config = const AreaAnnotationConfig(),
  String? label,
  TextStyle? labelStyle,
  Alignment labelAlignment = Alignment.center,
}) {
  return AreaAnnotation(
    key: key,
    scale: scale,
    startValue: startValue,
    endValue: endValue,
    width: width,
    height: height,
    config: config,
    label: label,
    labelStyle: labelStyle,
    labelAlignment: labelAlignment,
  );
}