UserCapabilitiesExtension extension
Provides helper methods for List<UserCapability>.
- on
Properties
- hasDev → bool
-
Available on List<
ReturnsUserCapability> , provided by the UserCapabilitiesExtension extensiontrue
if UserCapability.dev is one of the capabilities the user has. Otherwisefalse
.no setter - hasModerator → bool
-
Available on List<
ReturnsUserCapability> , provided by the UserCapabilitiesExtension extensiontrue
if the list contains UserCapability.moderator. Otherwisefalse
.no setter - hasStudent → bool
-
Available on List<
ReturnsUserCapability> , provided by the UserCapabilitiesExtension extensiontrue
if the list contains UserCapability.student. Otherwisefalse
.no setter - hasTeacher → bool
-
Available on List<
ReturnsUserCapability> , provided by the UserCapabilitiesExtension extensiontrue
if the list contains UserCapability.teacher. Otherwisefalse
.no setter - highest → UserCapability
-
Available on List<
Returns the highest UserCapability in the list.UserCapability> , provided by the UserCapabilitiesExtension extensionno setter
Methods
-
has(
List< UserCapability> capabilities) → bool -
Available on List<
ReturnsUserCapability> , provided by the UserCapabilitiesExtension extensiontrue
if the list contains all of the givencapabilities
. Otherwisefalse
.