PIbd-32_Stroev_V_M_PMD/lib/repo/mock_repo.dart
2024-10-30 22:39:56 +04:00

19 lines
527 B
Dart

import 'package:labs/CourseStatus.dart';
import 'package:labs/domain/models/Student.dart';
import '../domain/models/home.dart';
import 'api_interface.dart';
class MockRepo extends ApiInterface {
@override
Future<HomeData?> loadData({OnErrorCallback? onError}) async {
return HomeData (
);
/*return [
Student('Stroev V.', 19, [CourseStatus.Biology.name]),
Student('Samoilov K.', 20, [CourseStatus.Chemistry.name]),
Student('Belov M.', 21, [CourseStatus.ComputerScience.name]),
];*/
}
}