KnownThreadViewPrefSort 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 = KnownThreadViewPrefSort.something.value;
Convert to UThreadViewPrefSort
final union = KnownThreadViewPrefSort.something.toUnion();
- Inheritance
- Available extensions
Values
- oldest → const KnownThreadViewPrefSort
-
const KnownThreadViewPrefSort('oldest')
- newest → const KnownThreadViewPrefSort
-
const KnownThreadViewPrefSort('newest')
- mostLikes → const KnownThreadViewPrefSort
-
const KnownThreadViewPrefSort('most-likes')
- random → const KnownThreadViewPrefSort
-
const KnownThreadViewPrefSort('random')
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- isMostLikes → bool
-
Available on KnownThreadViewPrefSort, provided by the $KnownThreadViewPrefSortExtension extension
Returns true if this value is mostLikes, otherwise false.no setter - isNewest → bool
-
Available on KnownThreadViewPrefSort, provided by the $KnownThreadViewPrefSortExtension extension
Returns true if this value is newest, otherwise false.no setter - isNotMostLikes → bool
-
Available on KnownThreadViewPrefSort, provided by the $KnownThreadViewPrefSortExtension extension
Returns true if this value is not mostLikes, otherwise false.no setter - isNotNewest → bool
-
Available on KnownThreadViewPrefSort, provided by the $KnownThreadViewPrefSortExtension extension
Returns true if this value is not newest, otherwise false.no setter - isNotOldest → bool
-
Available on KnownThreadViewPrefSort, provided by the $KnownThreadViewPrefSortExtension extension
Returns true if this value is not oldest, otherwise false.no setter - isNotRandom → bool
-
Available on KnownThreadViewPrefSort, provided by the $KnownThreadViewPrefSortExtension extension
Returns true if this value is not random, otherwise false.no setter - isOldest → bool
-
Available on KnownThreadViewPrefSort, provided by the $KnownThreadViewPrefSortExtension extension
Returns true if this value is oldest, otherwise false.no setter - isRandom → bool
-
Available on KnownThreadViewPrefSort, provided by the $KnownThreadViewPrefSortExtension extension
Returns true if this value is random, 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(
) → UThreadViewPrefSort -
Available on KnownThreadViewPrefSort, provided by the $KnownThreadViewPrefSortExtension extension
Returns this value as UThreadViewPrefSort.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
valueOf(
String? value) → KnownThreadViewPrefSort? -
Returns KnownThreadViewPrefSort associated with
value
, otherwise null.
Constants
-
values
→ const List<
KnownThreadViewPrefSort> - A constant List of the values in this enum, in order of their declaration.