implemented new loadable state concept
This commit is contained in:
13
lib/state/app/infrastructure/repository/repository.dart
Normal file
13
lib/state/app/infrastructure/repository/repository.dart
Normal 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();
|
||||
});
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user