areaAnnotation function
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,
);
}