getDecodedKeys method

  1. @protected
Future<Set<String>> getDecodedKeys()
inherited

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:

  • getEncodedKeys for getting keys with the container prefix
  • decodeKey which is used to decode each key
  • _isAssociatedKey which is used for filtering

Implementation

@protected
Future<Set<String>> getDecodedKeys() async {
  final allKeys = await backend.getKeys();
  return allKeys.where(_isAssociatedKey).map(decodeKey).toSet();
}