KnownSearchPostsSkeletonSort 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 = KnownSearchPostsSkeletonSort.something.value;
Convert to USearchPostsSkeletonSort
final union = KnownSearchPostsSkeletonSort.something.toUnion();
- Inheritance
- Available extensions
Values
- top → const KnownSearchPostsSkeletonSort
-
const KnownSearchPostsSkeletonSort('top')
- latest → const KnownSearchPostsSkeletonSort
-
const KnownSearchPostsSkeletonSort('latest')
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- isLatest → bool
-
Available on KnownSearchPostsSkeletonSort, provided by the $KnownSearchPostsSkeletonSortExtension extension
Returns true if this value is latest, otherwise false.no setter - isNotLatest → bool
-
Available on KnownSearchPostsSkeletonSort, provided by the $KnownSearchPostsSkeletonSortExtension extension
Returns true if this value is not latest, otherwise false.no setter - isNotTop → bool
-
Available on KnownSearchPostsSkeletonSort, provided by the $KnownSearchPostsSkeletonSortExtension extension
Returns true if this value is not top, otherwise false.no setter - isTop → bool
-
Available on KnownSearchPostsSkeletonSort, provided by the $KnownSearchPostsSkeletonSortExtension extension
Returns true if this value is top, 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(
) → USearchPostsSkeletonSort -
Available on KnownSearchPostsSkeletonSort, provided by the $KnownSearchPostsSkeletonSortExtension extension
Returns this value as USearchPostsSkeletonSort.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
valueOf(
String? value) → KnownSearchPostsSkeletonSort? -
Returns KnownSearchPostsSkeletonSort associated with
value
, otherwise null.
Constants
-
values
→ const List<
KnownSearchPostsSkeletonSort> - A constant List of the values in this enum, in order of their declaration.