KnownAccountStatus 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 = KnownAccountStatus.something.value;
Convert to UAccountStatus
final union = KnownAccountStatus.something.toUnion();
- Inheritance
- Available extensions
Values
- takendown → const KnownAccountStatus
-
const KnownAccountStatus('takendown')
- suspended → const KnownAccountStatus
-
const KnownAccountStatus('suspended')
- deleted → const KnownAccountStatus
-
const KnownAccountStatus('deleted')
- deactivated → const KnownAccountStatus
-
const KnownAccountStatus('deactivated')
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- isDeactivated → bool
-
Available on KnownAccountStatus, provided by the $KnownAccountStatusExtension extension
Returns true if this value is deactivated, otherwise false.no setter - isDeleted → bool
-
Available on KnownAccountStatus, provided by the $KnownAccountStatusExtension extension
Returns true if this value is deleted, otherwise false.no setter - isNotDeactivated → bool
-
Available on KnownAccountStatus, provided by the $KnownAccountStatusExtension extension
Returns true if this value is not deactivated, otherwise false.no setter - isNotDeleted → bool
-
Available on KnownAccountStatus, provided by the $KnownAccountStatusExtension extension
Returns true if this value is not deleted, otherwise false.no setter - isNotSuspended → bool
-
Available on KnownAccountStatus, provided by the $KnownAccountStatusExtension extension
Returns true if this value is not suspended, otherwise false.no setter - isNotTakendown → bool
-
Available on KnownAccountStatus, provided by the $KnownAccountStatusExtension extension
Returns true if this value is not takendown, otherwise false.no setter - isSuspended → bool
-
Available on KnownAccountStatus, provided by the $KnownAccountStatusExtension extension
Returns true if this value is suspended, otherwise false.no setter - isTakendown → bool
-
Available on KnownAccountStatus, provided by the $KnownAccountStatusExtension extension
Returns true if this value is takendown, 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(
) → UAccountStatus -
Available on KnownAccountStatus, provided by the $KnownAccountStatusExtension extension
Returns this value as UAccountStatus.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
valueOf(
String? value) → KnownAccountStatus? -
Returns KnownAccountStatus associated with
value
, otherwise null.
Constants
-
values
→ const List<
KnownAccountStatus> - A constant List of the values in this enum, in order of their declaration.