hasTeacher property

bool hasTeacher

Returns true if the list contains UserCapability.teacher. Otherwise false.

Implementation

bool get hasTeacher => contains(UserCapability.teacher);