getAllKeys method

  1. @override
Future<List<String>> getAllKeys(
  1. String collection
)
override

Returns every key in collection.

Implementation

@override
Future<List<String>> getAllKeys(String collection) async {
  _ensureInitialized();
  return guardRead('Failed to get all keys from "$collection"', () async {
    final box = await _openBox(collection);
    return box.keys.cast<String>().toList();
  });
}