PromotionIdentifierKey enum
This is defining an enumeration called PromotionIdentifierKey
with two possible values: uuid
and
code
. Each value is associated with a string value ('UUID'
and 'CODE'
respectively). The
const PromotionIdentifierKey(this.promotionIdentifierKey)
constructor is used to initialize the
promotionIdentifierKey
field with the string value associated with each enumeration value.
Values
- uuid → const PromotionIdentifierKey
-
const PromotionIdentifierKey('UUID')
- code → const PromotionIdentifierKey
-
const PromotionIdentifierKey('CODE')
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - promotionIdentifierKey → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
promotionIdentifierKeyAsString(
) → String - This function returns the promotion identifier key as a string.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getPromotionIdentifierKeyFromString(
String string) → PromotionIdentifierKey - The function returns a PromotionIdentifierKey based on a given string input.
Constants
-
values
→ const List<
PromotionIdentifierKey> - A constant List of the values in this enum, in order of their declaration.