foreground<T> static method
Creates a foreground annotation layer that renders everything except groups.
This layer renders sticky notes and markers above connections but below any overlays or UI controls.
Example
Stack(
children: [
Background(),
Groups(),
Nodes(),
Connections(),
AnnotationLayer<T>.foreground(controller), // Stickies and markers on top
],
)
Implementation
static AnnotationLayer<T> foreground<T>(NodeFlowController<T> controller) {
return AnnotationLayer<T>(
controller: controller,
filter: (annotation) => annotation is! GroupAnnotation,
);
}