GraphQLEnumValue<Value> class
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
- Implemented types
- Annotations
-
- @immutable
Constructors
- GraphQLEnumValue(String name, Value value, {String? description, String? deprecationReason, EnumValueDefinitionNode? astNode, GraphQLAttachments attachments = const []})
-
A variant of a GraphQLEnumType.
const
Properties
- astNode → EnumValueDefinitionNode?
-
If this was parsed from an ast, the node in that ast
final
- attachments → GraphQLAttachments
-
Other custom values that may modify the execution, validation or
introspection for this element
final
- deprecationReason → String?
-
The reason, if any, that this value was deprecated,
if it indeed is deprecated.
final
- description → String?
-
An optional description of this value; useful for tools like GraphiQL.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDeprecated → bool
-
Returns
true
if this value has a deprecationReason.no setter - name → String
-
The name of this value.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → Value
-
The Dart value associated with enum values bearing the given name.
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