PIbd-32_Stroev_V_M_PMD/lib/repo/mock_repo.dart

15 lines
444 B
Dart
Raw Normal View History

2024-10-22 08:55:54 +04:00
import 'package:labs/CourseStatus.dart';
import 'package:labs/domain/models/Student.dart';
import 'api_interface.dart';
class MockRepo extends ApiInterface {
@override
Future<List<Student>?> loadData(String? q) async {
return [
Student('Stroev V.', 19, [CourseStatus.Biology.name]),
Student('Samoilov K.', 20, [CourseStatus.Chemistry.name]),
Student('Belov M.', 21, [CourseStatus.ComputerScience.name]),
];
}
}