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

Convert to UGetInviteCodesSort

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

Values

recent → const KnownGetInviteCodesSort
const KnownGetInviteCodesSort('recent')
usage → const KnownGetInviteCodesSort
const KnownGetInviteCodesSort('usage')

Properties

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

Available on KnownGetInviteCodesSort, provided by the $KnownGetInviteCodesSortExtension extension

Returns true if this value is not recent, otherwise false.
no setter
isNotUsage bool

Available on KnownGetInviteCodesSort, provided by the $KnownGetInviteCodesSortExtension extension

Returns true if this value is not usage, otherwise false.
no setter
isRecent bool

Available on KnownGetInviteCodesSort, provided by the $KnownGetInviteCodesSortExtension extension

Returns true if this value is recent, otherwise false.
no setter
isUsage bool

Available on KnownGetInviteCodesSort, provided by the $KnownGetInviteCodesSortExtension extension

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

Available on KnownGetInviteCodesSort, provided by the $KnownGetInviteCodesSortExtension extension

Returns this value as UGetInviteCodesSort.

Operators

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

Static Methods

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

Constants

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