removeSubjectById method
- int id
Attempts to remove subject by the given id
.
Implementation
void removeSubjectById(int id) => _subjects.removeWhere((s) => s.id == id);
Attempts to remove subject by the given id
.
void removeSubjectById(int id) => _subjects.removeWhere((s) => s.id == id);