getAnnotationsForNode method

List<Annotation> getAnnotationsForNode(
  1. String nodeId
)

Get annotations that depend on a specific node

Implementation

List<Annotation> getAnnotationsForNode(String nodeId) {
  return annotations
      .where((annotation) => annotation.hasDependency(nodeId))
      .toList();
}