PixelLabelAnnotation constructor
const
PixelLabelAnnotation({
- Key? key,
- required double x,
- required double y,
- required String label,
- TextStyle? labelStyle,
- required double width,
- required double height,
- LabelAnnotationConfig config = const LabelAnnotationConfig(),
- LabelAnchor anchor = LabelAnchor.center,
Creates a pixel-positioned label annotation.
Implementation
const PixelLabelAnnotation({
super.key,
required this.x,
required this.y,
required this.label,
this.labelStyle,
required this.width,
required this.height,
this.config = const LabelAnnotationConfig(),
this.anchor = LabelAnchor.center,
});