KnownSubjectReviewState 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 = KnownSubjectReviewState.something.value;

Convert to USubjectReviewState

final union = KnownSubjectReviewState.something.toUnion();
Inheritance
Available extensions

Values

reviewOpen → const KnownSubjectReviewState

Moderator review status of a subject: Open. Indicates that the subject needs to be reviewed by a moderator

const KnownSubjectReviewState('#reviewOpen')
reviewEscalated → const KnownSubjectReviewState

Moderator review status of a subject: Escalated. Indicates that the subject was escalated for review by a moderator

const KnownSubjectReviewState('#reviewEscalated')
reviewClosed → const KnownSubjectReviewState

Moderator review status of a subject: Closed. Indicates that the subject was already reviewed and resolved by a moderator

const KnownSubjectReviewState('#reviewClosed')
reviewNone → const KnownSubjectReviewState

Moderator review status of a subject: Unnecessary. Indicates that the subject does not need a review at the moment but there is probably some moderation related metadata available for it

const KnownSubjectReviewState('#reviewNone')

Properties

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

Available on KnownSubjectReviewState, provided by the $KnownSubjectReviewStateExtension extension

Returns true if this value is not reviewClosed, otherwise false.
no setter
isNotReviewEscalated bool

Available on KnownSubjectReviewState, provided by the $KnownSubjectReviewStateExtension extension

Returns true if this value is not reviewEscalated, otherwise false.
no setter
isNotReviewNone bool

Available on KnownSubjectReviewState, provided by the $KnownSubjectReviewStateExtension extension

Returns true if this value is not reviewNone, otherwise false.
no setter
isNotReviewOpen bool

Available on KnownSubjectReviewState, provided by the $KnownSubjectReviewStateExtension extension

Returns true if this value is not reviewOpen, otherwise false.
no setter
isReviewClosed bool

Available on KnownSubjectReviewState, provided by the $KnownSubjectReviewStateExtension extension

Returns true if this value is reviewClosed, otherwise false.
no setter
isReviewEscalated bool

Available on KnownSubjectReviewState, provided by the $KnownSubjectReviewStateExtension extension

Returns true if this value is reviewEscalated, otherwise false.
no setter
isReviewNone bool

Available on KnownSubjectReviewState, provided by the $KnownSubjectReviewStateExtension extension

Returns true if this value is reviewNone, otherwise false.
no setter
isReviewOpen bool

Available on KnownSubjectReviewState, provided by the $KnownSubjectReviewStateExtension extension

Returns true if this value is reviewOpen, 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() USubjectReviewState

Available on KnownSubjectReviewState, provided by the $KnownSubjectReviewStateExtension extension

Returns this value as USubjectReviewState.

Operators

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

Static Methods

valueOf(String? value) KnownSubjectReviewState?
Returns KnownSubjectReviewState associated with value, otherwise null.

Constants

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