get method

HVal? get(
  1. String name, [
  2. bool checked = true
])

Returns a tag by name.

If not found and checked if false then returns null, otherwise throw UnknownNameException.

Implementation

HVal? get(String name, [bool checked = true]) {
  HVal? val = _map[name];
  if (val != null) return val;
  if (!checked) return null;
  throw UnknownNameError(name);
}