addProtocolRoot static method
Makes the patterns of the protocol prefix (asset:) list the
files of root (asset:docs/**/*.md), until the returned function
is called; without one, a pattern of another protocol finds the one
location as written.
Implementation
static void Function() addProtocolRoot(String prefix, ResourceRoot root) {
_protocolRoots[prefix] = root;
return () {
if (identical(_protocolRoots[prefix], root)) {
_protocolRoots.remove(prefix);
}
};
}