LabelAnnotation constructor
const
LabelAnnotation({
- Key? key,
- required dynamic xScale,
- required dynamic yScale,
- required dynamic xValue,
- required dynamic yValue,
- required String label,
- TextStyle? labelStyle,
- required double width,
- required double height,
- LabelAnnotationConfig config = const LabelAnnotationConfig(),
- LabelAnchor anchor = LabelAnchor.center,
- Offset offset = Offset.zero,
Creates a label annotation.
Implementation
const LabelAnnotation({
super.key,
required this.xScale,
required this.yScale,
required this.xValue,
required this.yValue,
required this.label,
this.labelStyle,
required this.width,
required this.height,
this.config = const LabelAnnotationConfig(),
this.anchor = LabelAnchor.center,
this.offset = Offset.zero,
});