AnnotationWidget constructor

const AnnotationWidget({
  1. Key? key,
  2. required Annotation annotation,
  3. bool isSelected = false,
  4. bool isHighlighted = false,
})

Creates an annotation widget.

Parameters

  • annotation: The annotation to render
  • isSelected: Whether this annotation is currently selected
  • isHighlighted: Whether this annotation is being highlighted (e.g., during drag-over)

Implementation

const AnnotationWidget({
  super.key,
  required this.annotation,
  this.isSelected = false,
  this.isHighlighted = false,
});