GraphQLEnumValue<Value> constructor
const
GraphQLEnumValue<Value> (
- String name,
- Value value, {
- String? description,
- String? deprecationReason,
- EnumValueDefinitionNode? astNode,
- 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 [],
});