GraphQLEnumValue<Value> constructor

const GraphQLEnumValue<Value>(
  1. String name,
  2. Value value, {
  3. String? description,
  4. String? deprecationReason,
  5. EnumValueDefinitionNode? astNode,
  6. GraphQLAttachments attachments = const [],
})

A variant of a GraphQLEnumType.

In practice, you might not directly call this constructor very often. However this will allow you to specify a description and a deprecationReason

Implementation

const GraphQLEnumValue(
  this.name,
  this.value, {
  this.description,
  this.deprecationReason,
  this.astNode,
  this.attachments = const [],
});