verticalLineAnnotation function
Creates a vertical line annotation.
Implementation
Widget verticalLineAnnotation({
Key? key,
required dynamic scale,
required dynamic value,
required double width,
required double height,
Color color = const Color(0xFF666666),
double strokeWidth = 1,
List<double>? dashPattern,
String? label,
TextStyle? labelStyle,
}) {
return LineAnnotation(
key: key,
scale: scale,
value: value,
width: width,
height: height,
config: LineAnnotationConfig(
color: color,
strokeWidth: strokeWidth,
dashPattern: dashPattern,
orientation: AnnotationOrientation.vertical,
),
label: label,
labelStyle: labelStyle,
);
}