collect method

dynamic collect(
  1. Ref ref
)

Implementation

collect(Ref ref) {
  if (!refs.contains(ref)) {
    refs.add(ref);
  }
}