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
- dev → const UserCapability
-
Users with this capability are members of the development team.
They have exclusive access to development-specific features and statistics.
This role is typically reserved for those involved in the app's development and maintenance.
const UserCapability(_dev)
- moderator → const UserCapability
-
Users with this capability act as moderators within the platform.
For example, they have the authority to access and manage user feedback.
and perform other moderation tasks.
const UserCapability(_moderator)
- 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)
- 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)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- isDev → bool
-
Available on UserCapability, provided by the UserCapabilityExtension extension
Returnstrue
if this capability is UserCapability.dev. Otherwisefalse
.no setter - isModerator → bool
-
Available on UserCapability, provided by the UserCapabilityExtension extension
Returnstrue
if this capability is UserCapability.moderator. Otherwisefalse
.no setter - isStudent → bool
-
Available on UserCapability, provided by the UserCapabilityExtension extension
Returnstrue
if this capability is UserCapability.student. Otherwisefalse
.no setter - isTeacher → bool
-
Available on UserCapability, provided by the UserCapabilityExtension extension
Returnstrue
if this capability is UserCapability.teacher. Otherwisefalse
.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
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.