AnnotationWidget constructor
const
AnnotationWidget({
- Key? key,
- required Annotation annotation,
- required NodeFlowController controller,
- VoidCallback? onTap,
- VoidCallback? onDoubleTap,
- void onContextMenu(
- Offset globalPosition
- VoidCallback? onMouseEnter,
- VoidCallback? onMouseLeave,
Creates an annotation widget.
Selection and highlight states are read directly from the annotation and controller - they do not need to be passed in.
Parameters
annotation: The annotation to rendercontroller: Controller for drag handling and state queries
Implementation
const AnnotationWidget({
super.key,
required this.annotation,
required this.controller,
this.onTap,
this.onDoubleTap,
this.onContextMenu,
this.onMouseEnter,
this.onMouseLeave,
});