background<T> static method
Creates a background annotation layer that renders only groups.
Group annotations are typically rendered behind nodes with a negative z-index, creating visual boundaries around related nodes.
Example
Stack(
children: [
Background(),
AnnotationLayer<T>.background(controller), // Groups behind nodes
Nodes(),
Connections(),
],
)
Implementation
static AnnotationLayer<T> background<T>(NodeFlowController<T> controller) {
return AnnotationLayer<T>(
controller: controller,
filter: (annotation) => annotation is GroupAnnotation,
);
}