loadEventSources method
Implementation
@override
Future<List<String>> loadEventSources(String eventId) async {
await dbRdy;
final cached = _eventSources[eventId];
if (cached != null) {
final sources = cached.toList()..sort();
return sources;
}
final stored = _getKeyValue(_eventSourcesKey(eventId));
if (stored == null) {
return [];
}
final sources =
(jsonDecode(stored) as List).map((entry) => entry.toString()).toSet();
_eventSources[eventId] = sources;
final sortedSources = sources.toList()..sort();
return sortedSources;
}