KnownMemberRole enum
Overview
The object representing knownValues
defined in Lexicon as an Enum.
Although the knownValues
defined in Lexicon are not technically Enums,
it is very useful to be able to treat these fields as type safe Enums.
Usage
Get JSON compatible value
// JSON compatible value.
final value = KnownMemberRole.something.value;
Convert to UMemberRole
final union = KnownMemberRole.something.toUnion();
- Inheritance
- Available extensions
Values
- roleAdmin → const KnownMemberRole
-
Admin role. Highest level of access, can perform all actions.
const KnownMemberRole('#roleAdmin')
- roleModerator → const KnownMemberRole
-
Moderator role. Can perform most actions.
const KnownMemberRole('#roleModerator')
- roleTriage → const KnownMemberRole
-
Triage role. Mostly intended for monitoring and escalating issues.
const KnownMemberRole('#roleTriage')
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- isNotRoleAdmin → bool
-
Available on KnownMemberRole, provided by the $KnownMemberRoleExtension extension
Returns true if this value is not roleAdmin, otherwise false.no setter - isNotRoleModerator → bool
-
Available on KnownMemberRole, provided by the $KnownMemberRoleExtension extension
Returns true if this value is not roleModerator, otherwise false.no setter - isNotRoleTriage → bool
-
Available on KnownMemberRole, provided by the $KnownMemberRoleExtension extension
Returns true if this value is not roleTriage, otherwise false.no setter - isRoleAdmin → bool
-
Available on KnownMemberRole, provided by the $KnownMemberRoleExtension extension
Returns true if this value is roleAdmin, otherwise false.no setter - isRoleModerator → bool
-
Available on KnownMemberRole, provided by the $KnownMemberRoleExtension extension
Returns true if this value is roleModerator, otherwise false.no setter - isRoleTriage → bool
-
Available on KnownMemberRole, provided by the $KnownMemberRoleExtension extension
Returns true if this value is roleTriage, 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
- value → String
-
JSON value based on lexicon.
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
-
toUnion(
) → UMemberRole -
Available on KnownMemberRole, provided by the $KnownMemberRoleExtension extension
Returns this value as UMemberRole.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
valueOf(
String? value) → KnownMemberRole? -
Returns KnownMemberRole associated with
value
, otherwise null.
Constants
-
values
→ const List<
KnownMemberRole> - A constant List of the values in this enum, in order of their declaration.