getValuesWithPrefix method

List<T> getValuesWithPrefix(
  1. String prefix
)

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;
}