removeSubjectById method

void removeSubjectById (
  1. int id
)

Attempts to remove subject by the given id.

Implementation

void removeSubjectById(int id) => _subjects.removeWhere((s) => s.id == id);