getStudents method
- ISchoolCourseDto course
override
Fetches the list of students enrolled in the specified course.
Returns student information (ID and name) for all students enrolled in
the given course.
The course should be obtained from getCourseList.
System accounts (e.g., "istudyoaa") are automatically filtered out.
Throws an Exception if no student data exists.
Implementation
@override
Future<List<StudentDto>> getStudents(ISchoolCourseDto course) async {
return studentsResult ??
[
(id: '111592347', name: '王大同'),
(id: '111360109', name: '何承軒'),
(id: '112360104', name: '孫培鈞'),
(id: '111590453', name: '張竣崴'),
(id: '112810006', name: '李圓凱'),
];
}