initialize method
Implementation
Future<void> initialize() async {
sources = await _getSources();
if (sources.isNotEmpty) {
selectedSourceId = sources.first.id;
await loadCollections(selectedSourceId!);
}
notifyListeners();
}
Future<void> initialize() async {
sources = await _getSources();
if (sources.isNotEmpty) {
selectedSourceId = sources.first.id;
await loadCollections(selectedSourceId!);
}
notifyListeners();
}