implemented new loadable state concept

This commit is contained in:
2024-05-05 22:58:40 +02:00
parent f58a2ec8cd
commit 6ad8203b6a
31 changed files with 1085 additions and 214 deletions

View File

@ -0,0 +1,13 @@
import '../dataLoader/data_loader.dart';
abstract class Repository {
final List<DataLoader> dataLoaders;
Repository(this.dataLoaders);
Future<void> load() async {
dataLoaders.forEach((element) {
element.fetch();
});
}
}