KnownLabelValue 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 = KnownLabelValue.something.value;
Convert to ULabelValue
final union = KnownLabelValue.something.toUnion();
- Inheritance
- Available extensions
Values
- hide → const KnownLabelValue
-
const KnownLabelValue('!hide')
- noPromote → const KnownLabelValue
-
const KnownLabelValue('!no-promote')
- warn → const KnownLabelValue
-
const KnownLabelValue('!warn')
- noUnauthenticated → const KnownLabelValue
-
const KnownLabelValue('!no-unauthenticated')
- dmcaViolation → const KnownLabelValue
-
const KnownLabelValue('dmca-violation')
- doxxing → const KnownLabelValue
-
const KnownLabelValue('doxxing')
- porn → const KnownLabelValue
-
const KnownLabelValue('porn')
- sexual → const KnownLabelValue
-
const KnownLabelValue('sexual')
- nudity → const KnownLabelValue
-
const KnownLabelValue('nudity')
- nsfl → const KnownLabelValue
-
const KnownLabelValue('nsfl')
- gore → const KnownLabelValue
-
const KnownLabelValue('gore')
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- isDmcaViolation → bool
-
Available on KnownLabelValue, provided by the $KnownLabelValueExtension extension
Returns true if this value is dmcaViolation, otherwise false.no setter - isDoxxing → bool
-
Available on KnownLabelValue, provided by the $KnownLabelValueExtension extension
Returns true if this value is doxxing, otherwise false.no setter - isGore → bool
-
Available on KnownLabelValue, provided by the $KnownLabelValueExtension extension
Returns true if this value is gore, otherwise false.no setter - isHide → bool
-
Available on KnownLabelValue, provided by the $KnownLabelValueExtension extension
Returns true if this value is hide, otherwise false.no setter - isNoPromote → bool
-
Available on KnownLabelValue, provided by the $KnownLabelValueExtension extension
Returns true if this value is noPromote, otherwise false.no setter - isNotDmcaViolation → bool
-
Available on KnownLabelValue, provided by the $KnownLabelValueExtension extension
Returns true if this value is not dmcaViolation, otherwise false.no setter - isNotDoxxing → bool
-
Available on KnownLabelValue, provided by the $KnownLabelValueExtension extension
Returns true if this value is not doxxing, otherwise false.no setter - isNotGore → bool
-
Available on KnownLabelValue, provided by the $KnownLabelValueExtension extension
Returns true if this value is not gore, otherwise false.no setter - isNotHide → bool
-
Available on KnownLabelValue, provided by the $KnownLabelValueExtension extension
Returns true if this value is not hide, otherwise false.no setter - isNotNoPromote → bool
-
Available on KnownLabelValue, provided by the $KnownLabelValueExtension extension
Returns true if this value is not noPromote, otherwise false.no setter - isNotNoUnauthenticated → bool
-
Available on KnownLabelValue, provided by the $KnownLabelValueExtension extension
Returns true if this value is not noUnauthenticated, otherwise false.no setter - isNotNsfl → bool
-
Available on KnownLabelValue, provided by the $KnownLabelValueExtension extension
Returns true if this value is not nsfl, otherwise false.no setter - isNotNudity → bool
-
Available on KnownLabelValue, provided by the $KnownLabelValueExtension extension
Returns true if this value is not nudity, otherwise false.no setter - isNotPorn → bool
-
Available on KnownLabelValue, provided by the $KnownLabelValueExtension extension
Returns true if this value is not porn, otherwise false.no setter - isNotSexual → bool
-
Available on KnownLabelValue, provided by the $KnownLabelValueExtension extension
Returns true if this value is not sexual, otherwise false.no setter - isNotWarn → bool
-
Available on KnownLabelValue, provided by the $KnownLabelValueExtension extension
Returns true if this value is not warn, otherwise false.no setter - isNoUnauthenticated → bool
-
Available on KnownLabelValue, provided by the $KnownLabelValueExtension extension
Returns true if this value is noUnauthenticated, otherwise false.no setter - isNsfl → bool
-
Available on KnownLabelValue, provided by the $KnownLabelValueExtension extension
Returns true if this value is nsfl, otherwise false.no setter - isNudity → bool
-
Available on KnownLabelValue, provided by the $KnownLabelValueExtension extension
Returns true if this value is nudity, otherwise false.no setter - isPorn → bool
-
Available on KnownLabelValue, provided by the $KnownLabelValueExtension extension
Returns true if this value is porn, otherwise false.no setter - isSexual → bool
-
Available on KnownLabelValue, provided by the $KnownLabelValueExtension extension
Returns true if this value is sexual, otherwise false.no setter - isWarn → bool
-
Available on KnownLabelValue, provided by the $KnownLabelValueExtension extension
Returns true if this value is warn, 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(
) → ULabelValue -
Available on KnownLabelValue, provided by the $KnownLabelValueExtension extension
Returns this value as ULabelValue.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
valueOf(
String? value) → KnownLabelValue? -
Returns KnownLabelValue associated with
value
, otherwise null.
Constants
-
values
→ const List<
KnownLabelValue> - A constant List of the values in this enum, in order of their declaration.