getValuesWithPrefix method
Gets a list of values whose associated keys have the given prefix.
Implementation
List<T> getValuesWithPrefix(String prefix) {
var values = <T>[];
void visitor(String key, T? value) {
if (value != null) {
values.add(value);
}
}
visitRootPrefixed(visitor, prefix);
return values;
}