linkTos method

Iterable linkTos(
  1. dynamic val, {
  2. List anyTags = const [],
  3. List allTags = const [],
})
override

Get all links link from val

(Optional) Only if it matches any of anyTags and matches all items in allTags

Implementation

Iterable linkTos(val, {List anyTags = const [], List allTags = const []}) {
  final _v = _map_add_or_get(val, _newNode);
  return anyTags.isEmpty && allTags.isEmpty
      ? _v.to.keys.map((n) => _node_to_val[n])
      : _v.to.keys
          .where((n) =>
              _check_all_any_tags(_v, n, anyTags: anyTags, allTags: allTags))
          .map((n) => _node_to_val[n]);
}