keys method

Future<List<String>> keys({
  1. ETagReceiver? eTagReceiver,
})

Lists all keys of the store.

This will return all the keys of entries that are direct children to this store.

If eTagReceiver was specified, it will contain the current eTag of the whole store after the returned future was resolved.

Implementation

Future<List<String>> keys({ETagReceiver? eTagReceiver}) async {
  final response = await restApi.get(
    path: _buildPath(),
    shallow: eTagReceiver == null,
    eTag: eTagReceiver != null,
  );
  _applyETag(eTagReceiver, response);
  return (response.data as Map<String, dynamic>?)?.keys.toList() ?? [];
}