listSecrets method
All secrets, optionally restricted to one namespace and/or to names
beginning with namePrefix. The prefix filter lets a system caller
enumerate a family of reserved secrets within a scope — e.g. the group
provider listing __rk.* epoch keys for one (atSign, namespace) to
resolve the current key or prune old epochs.
Implementation
List<Secret> listSecrets({String? namespace, String? namePrefix}) =>
_secrets.values
.where((s) =>
(namespace == null || s.namespace == namespace) &&
(namePrefix == null || s.name.startsWith(namePrefix)))
.toList();