AnnotationWidget constructor
const
AnnotationWidget({
- Key? key,
- required Annotation annotation,
- required NodeFlowController controller,
- bool isSelected = false,
- bool isHighlighted = false,
- VoidCallback? onTap,
- VoidCallback? onDoubleTap,
- void onContextMenu(
- Offset globalPosition
- VoidCallback? onMouseEnter,
- VoidCallback? onMouseLeave,
Creates an annotation widget.
Parameters
annotation: The annotation to renderisSelected: Whether this annotation is currently selectedisHighlighted: Whether this annotation is being highlighted (e.g., during drag-over)controller: Controller for direct drag handling (required)
Implementation
const AnnotationWidget({
super.key,
required this.annotation,
required this.controller,
this.isSelected = false,
this.isHighlighted = false,
this.onTap,
this.onDoubleTap,
this.onContextMenu,
this.onMouseEnter,
this.onMouseLeave,
});