linkFroms method

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

Get all links link to val

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

Implementation

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