hasStudent property

bool get hasStudent

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

Implementation

bool get hasStudent => contains(UserCapability.student);