getAccountData method
Implementation
@override
Future<Map<String, BasicEvent>> getAccountData() =>
runBenchmarked<Map<String, BasicEvent>>('Get all account data from Hive',
() async {
final accountData = <String, BasicEvent>{};
for (final key in _accountDataBox.keys) {
final raw = await _accountDataBox.get(key);
accountData[key.toString().fromHiveKey] = BasicEvent(
type: key.toString().fromHiveKey,
content: convertToJson(raw),
);
}
return accountData;
}, _accountDataBox.keys.length);