getKeys method

  1. @override
Future<List<String>> getKeys()
override

Get all keys

Implementation

@override
Future<List<String>> getKeys() async {
  final db = await _initializedDB;
  final txn = db.transaction(storeName, idbModeReadOnly);
  final keys = await txn.objectStore(storeName).getAllKeys();
  await txn.completed;
  return keys.map((e) => e.toString()).toList();
}