AnnotationLayer<T> constructor
const
AnnotationLayer<T> ({
- Key? key,
- required NodeFlowController<
T> controller, - bool filter()?,
- void onAnnotationTap(
- Annotation annotation
- void onAnnotationDoubleTap(
- Annotation annotation
- void onAnnotationContextMenu(
- Annotation annotation,
- Offset globalPosition
- void onAnnotationMouseEnter(
- Annotation annotation
- void onAnnotationMouseLeave(
- Annotation annotation
Creates an annotation layer.
Parameters
controller: The node flow controller managing the annotationsfilter: Optional predicate to filter which annotations to render
Implementation
const AnnotationLayer({
super.key,
required this.controller,
this.filter,
this.onAnnotationTap,
this.onAnnotationDoubleTap,
this.onAnnotationContextMenu,
this.onAnnotationMouseEnter,
this.onAnnotationMouseLeave,
});