hasTeacher property

bool get hasTeacher

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

Implementation

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