isTeacher property

bool isTeacher

Returns true if this capability is UserCapability.teacher. Otherwise false.

Implementation

bool get isTeacher => this == UserCapability.teacher;