hasTeacher property
Returns true if the list contains UserCapability.teacher. Otherwise false.
Implementation
bool get hasTeacher => contains(UserCapability.teacher);
Returns true if the list contains UserCapability.teacher. Otherwise false.
bool get hasTeacher => contains(UserCapability.teacher);