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

Convert to URepoOpAction

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

Values

create → const KnownRepoOpAction
const KnownRepoOpAction('create')
update → const KnownRepoOpAction
const KnownRepoOpAction('update')
delete → const KnownRepoOpAction
const KnownRepoOpAction('delete')

Properties

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

Available on KnownRepoOpAction, provided by the $KnownRepoOpActionExtension extension

Returns true if this value is create, otherwise false.
no setter
isDelete bool

Available on KnownRepoOpAction, provided by the $KnownRepoOpActionExtension extension

Returns true if this value is delete, otherwise false.
no setter
isNotCreate bool

Available on KnownRepoOpAction, provided by the $KnownRepoOpActionExtension extension

Returns true if this value is not create, otherwise false.
no setter
isNotDelete bool

Available on KnownRepoOpAction, provided by the $KnownRepoOpActionExtension extension

Returns true if this value is not delete, otherwise false.
no setter
isNotUpdate bool

Available on KnownRepoOpAction, provided by the $KnownRepoOpActionExtension extension

Returns true if this value is not update, otherwise false.
no setter
isUpdate bool

Available on KnownRepoOpAction, provided by the $KnownRepoOpActionExtension extension

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

Available on KnownRepoOpAction, provided by the $KnownRepoOpActionExtension extension

Returns this value as URepoOpAction.

Operators

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

Static Methods

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

Constants

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