operator [] method

T? operator [](
  1. OccurrenceAddress address
)

The value stored at address, if any.

Implementation

T? operator [](OccurrenceAddress address) {
  var node = _root;
  for (final index in _validatedPath(address)) {
    final child = node.children[index];
    if (child == null) {
      return null;
    }
    node = child;
  }
  return node.value;
}