initialize method

Future<void> initialize()

Implementation

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