FieldDefinitionNode constructor

const FieldDefinitionNode(
  1. {StringValueNode description,
  2. @required NameNode name,
  3. @required TypeNode type,
  4. List<InputValueDefinitionNode> args: const [],
  5. List<DirectiveNode> directives: const [],
  6. FileSpan span}
)

Implementation

const FieldDefinitionNode({
  this.description,
  @required this.name,
  @required this.type,
  this.args = const [],
  this.directives = const [],
  FileSpan span,
})  : assert(type != null),
      assert(args != null),
      assert(name != null),
      assert(directives != null),
      super(span);