Role enum

Inheritance

Constructors

Role(String label)
const

Values

owner → const Role
const Role('Admin')
editor → const Role
const Role('Editor')
viewer → const Role
const Role('Viewer')

Properties

canEditProject bool
Only owners and editors can edit projects.
no setter
canManageProject bool
----------------- PERMISSIONS ----------------- Only owners can modify project metadata.
no setter
canManageProjectMembers bool
Anyone can manage project members.
no setter
canManageTeam bool
Only owners and editors can manage team members.
no setter
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
isHighestLevel bool
no setter
isLowestLevel bool
no setter
label String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

isHigherLevelThan(Role other) bool
----------------- POWER HIERARCHY -----------------
isHigherOrEqualLevelThan(Role other) bool
isLowerLevelThan(Role other) bool
isLowerOrEqualLevelThan(Role other) bool
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<Role>
A constant List of the values in this enum, in order of their declaration.