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

Convert to UReasonType

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

Values

reasonSpam → const KnownReasonType

Spam: frequent unwanted promotion, replies, mentions

const KnownReasonType('com.atproto.moderation.defs#reasonSpam')
reasonViolation → const KnownReasonType

Direct violation of server rules, laws, terms of service

const KnownReasonType('com.atproto.moderation.defs#reasonViolation')
reasonMisleading → const KnownReasonType

Misleading identity, affiliation, or content

const KnownReasonType('com.atproto.moderation.defs#reasonMisleading')
reasonSexual → const KnownReasonType

Unwanted or mislabeled sexual content

const KnownReasonType('com.atproto.moderation.defs#reasonSexual')
reasonRude → const KnownReasonType

Rude, harassing, explicit, or otherwise unwelcoming behavior

const KnownReasonType('com.atproto.moderation.defs#reasonRude')
reasonOther → const KnownReasonType

Other: reports not falling under another report category

const KnownReasonType('com.atproto.moderation.defs#reasonOther')
reasonAppeal → const KnownReasonType

Appeal: appeal a previously taken moderation action

const KnownReasonType('com.atproto.moderation.defs#reasonAppeal')

Properties

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

Available on KnownReasonType, provided by the $KnownReasonTypeExtension extension

Returns true if this value is not reasonAppeal, otherwise false.
no setter
isNotReasonMisleading bool

Available on KnownReasonType, provided by the $KnownReasonTypeExtension extension

Returns true if this value is not reasonMisleading, otherwise false.
no setter
isNotReasonOther bool

Available on KnownReasonType, provided by the $KnownReasonTypeExtension extension

Returns true if this value is not reasonOther, otherwise false.
no setter
isNotReasonRude bool

Available on KnownReasonType, provided by the $KnownReasonTypeExtension extension

Returns true if this value is not reasonRude, otherwise false.
no setter
isNotReasonSexual bool

Available on KnownReasonType, provided by the $KnownReasonTypeExtension extension

Returns true if this value is not reasonSexual, otherwise false.
no setter
isNotReasonSpam bool

Available on KnownReasonType, provided by the $KnownReasonTypeExtension extension

Returns true if this value is not reasonSpam, otherwise false.
no setter
isNotReasonViolation bool

Available on KnownReasonType, provided by the $KnownReasonTypeExtension extension

Returns true if this value is not reasonViolation, otherwise false.
no setter
isReasonAppeal bool

Available on KnownReasonType, provided by the $KnownReasonTypeExtension extension

Returns true if this value is reasonAppeal, otherwise false.
no setter
isReasonMisleading bool

Available on KnownReasonType, provided by the $KnownReasonTypeExtension extension

Returns true if this value is reasonMisleading, otherwise false.
no setter
isReasonOther bool

Available on KnownReasonType, provided by the $KnownReasonTypeExtension extension

Returns true if this value is reasonOther, otherwise false.
no setter
isReasonRude bool

Available on KnownReasonType, provided by the $KnownReasonTypeExtension extension

Returns true if this value is reasonRude, otherwise false.
no setter
isReasonSexual bool

Available on KnownReasonType, provided by the $KnownReasonTypeExtension extension

Returns true if this value is reasonSexual, otherwise false.
no setter
isReasonSpam bool

Available on KnownReasonType, provided by the $KnownReasonTypeExtension extension

Returns true if this value is reasonSpam, otherwise false.
no setter
isReasonViolation bool

Available on KnownReasonType, provided by the $KnownReasonTypeExtension extension

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

Available on KnownReasonType, provided by the $KnownReasonTypeExtension extension

Returns this value as UReasonType.

Operators

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

Static Methods

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

Constants

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