OperationDefinitionNode constructor

const OperationDefinitionNode({
  1. required OperationType type,
  2. NameNode? name,
  3. List<VariableDefinitionNode> variableDefinitions = const [],
  4. List<DirectiveNode> directives = const [],
  5. required SelectionSetNode selectionSet,
  6. FileSpan? span,
})

Implementation

const OperationDefinitionNode({
  required this.type,
  this.name,
  this.variableDefinitions = const [],
  this.directives = const [],
  required this.selectionSet,
  FileSpan? span,
}) : super(span);