description property

String? description

Returns the description of the enum field.

If the description is null, the doc comment of the enum field is returned.

Implementation

String? get description {
  return map<String?>(
    map: '''
The generated method will be `map(...)`.

Requires an extension declaration in [EnumValue.extensions]
on __ALL__ enum fields
___except when___ [Extension.allowNulls] is set to `true`
''',
    maybeMap: '''
The generated method will be `maybeMap(...)`.

Requires at least one extension declaration in the [EnumValue.extensions]
annotation on any enum field

Returns [Extension.defaultValue], or `null`
if [Extension.allowNulls] is `true`
''',
  );
}