removeChild method
Returns the removed node with the provided part
, or null
.
Implementation
@override
TrieNode<K, P, V>? removeChild(P part) {
final index = _binarySearch(part);
if (index < 0) {
return null;
}
final node = children[index];
parts.removeAt(index);
children.removeAt(index);
return node;
}