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
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

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.