DirectiveDefinition class

Directives are used to annotate various parts of a GraphQL document as an indicator that they should be evaluated differently by a validator, executor, or client tool such as a code generator.

Inheritance
Annotations
  • @immutable

Constructors

DirectiveDefinition(DirectiveDefinitionNode? astNode)
const

Properties

args List<InputValueDefinition>?
no setter
astNode DirectiveDefinitionNode?
The underlying definition node from gql/ast.dart
final
description String?
no setter
hashCode int
The hash code for this object.
no setterinherited
locations List<DirectiveLocation>?
no setter
name String?
no setteroverride
repeatable bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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 o) bool
The equality operator.
inherited