getAccountData method
Implementation
@override
Future<Map<String, BasicEvent>> getAccountData() =>
runBenchmarked<Map<String, BasicEvent>>('Get all account data from store',
() async {
final accountData = <String, BasicEvent>{};
final raws = await _accountDataBox.getAllValues();
for (final entry in raws.entries) {
accountData[entry.key] = BasicEvent(
type: entry.key,
content: copyMap(entry.value),
);
}
return accountData;
});