visitRootPrefixed method Null safety

  1. @optionalTypeArgs
void visitRootPrefixed(
  1. RadixTreeKVVisitor<T?> visitor,
  2. String prefix
)

Traverses this radix tree using the given visitor. Only values with the given prefix will be visited. Note that the tree will be traversed in lexicographical order.

Implementation

@optionalTypeArgs
void visitRootPrefixed(RadixTreeKVVisitor<T?> visitor, String prefix) {
  visit(root, prefix, '', visitor);
}