EnhancedEnum class

Annotation class to flag enums to be converted to enhanced enums. Usage:

@EnhancedEnum(/* parameters */)
enum Animals { fox, cat, bunny }

Constructors

EnhancedEnum({EnhancedEnumNamingConvention namingConvention = EnhancedEnumNamingConvention.original, bool strict = true, List? prefixes})
Create the enhanced enum annotation, specify which namingConvention to use and whether the enum is strict
const

Properties

hashCode int
The hash code for this object.
no setterinherited
namingConvention EnhancedEnumNamingConvention
Set the naming convention used for enum values .name
final
prefixes List?
assign any prefixes to be concatenated before .name
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
strict bool
Set whether the enum is supposed to be strict, in which case, when converting from a string to the enum value, the exact enum name string representation must be used.
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

Operators

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