tryGet method

Maybe? tryGet(
  1. dynamic from,
  2. dynamic to,
  3. dynamic key, {
  4. List anyTags = const [],
  5. List allTags = const [],
})
override

Get the value on the specified edge

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

Implementation

Maybe tryGet(from, to, key,
    {List anyTags = const [], List allTags = const []}) {
  final f = _map_add_or_get(from, _newNode);
  final t = _map_add_or_get(to, _newNode);
  if (_check_hasToVal_and_all_any_val_tags(f, t, key,
      anyTags: anyTags, allTags: allTags)) {
    return f.tryGet(t, key);
  }
  return None();
}