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,
  NameNode name,
  this.variableDefinitions = const [],
  this.directives = const [],
  @required this.selectionSet,
  FileSpan span,
})  : assert(variableDefinitions != null),
      assert(directives != null),
      assert(selectionSet != null),
      super(
        name: name,
        span: span,
      );