getKeysWithPrefix method

List<String> getKeysWithPrefix(
  1. String prefix
)

Gets a list of keys with the given prefix.

Implementation

List<String> getKeysWithPrefix(String prefix) {
  var keys = <String>[];

  void visitor(String key, T? value) {
    keys.add(key);
  }

  visitRootPrefixed(visitor, prefix);
  return keys;
}