UserCapability enum

Represents the different capabilities a user can possess within the application.

Each capability grants the user specific access rights and features tailored to their role.

Inheritance
Available extensions

Values

teacher → const UserCapability

Teacher Capability

Users with this capability are recognized as teachers or educators.

They have access to features that allow them to e.g. manage and create time slots.

const UserCapability(_teacher, 4)
student → const UserCapability

Users with this capability are identified as students or learners.

They can access features tailored to their planning experience (e.g. the calendar view)

const UserCapability(_student, 8)
slotMaster → const UserCapability

Slot Master Capability

Users with this capability are recognized as slot masters.

They have access to features that allow them to e.g. manage and create time slots.

const UserCapability(_slotMaster, 16)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
isSlotMaster bool

Available on UserCapability, provided by the UserCapabilityExtension extension

Returns true if this capability is UserCapability.slotMaster. Otherwise false.
no setter
isStudent bool

Available on UserCapability, provided by the UserCapabilityExtension extension

Returns true if this capability is UserCapability.student. Otherwise false.
no setter
isTeacher bool

Available on UserCapability, provided by the UserCapabilityExtension extension

Returns true if this capability is UserCapability.teacher. Otherwise false.
no setter
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
translate Translator
Translates the capability to a human-readable string based on the BuildContext.
final
value int
The value of the capability in the bitmask.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<UserCapability>
A constant List of the values in this enum, in order of their declaration.