getDecodedKeys method
Returns a set of all decoded keys in the container.
This method retrieves all keys from the backend storage, filters them to include only keys belonging to this container, and decodes them by removing the container prefix. The returned keys are in their original form without the container namespace.
Returns: A future that completes with a set of decoded keys belonging to this container. The keys have the container prefix removed.
See also:
getEncodedKeysfor getting keys with the container prefixdecodeKeywhich is used to decode each key_isAssociatedKeywhich is used for filtering
Implementation
@protected
Future<Set<String>> getDecodedKeys() async {
final allKeys = await backend.getKeys();
return allKeys.where(_isAssociatedKey).map(decodeKey).toSet();
}