PixelLabelAnnotation constructor

const PixelLabelAnnotation({
  1. Key? key,
  2. required double x,
  3. required double y,
  4. required String label,
  5. TextStyle? labelStyle,
  6. required double width,
  7. required double height,
  8. LabelAnnotationConfig config = const LabelAnnotationConfig(),
  9. 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,
});