EnumTypeDefinitionNode constructor

const EnumTypeDefinitionNode(
  1. {List<EnumValueDefinitionNode> values: const [],
  2. StringValueNode description,
  3. @required NameNode name,
  4. List<DirectiveNode> directives: const [],
  5. FileSpan span}
)

Implementation

const EnumTypeDefinitionNode({
  this.values = const [],
  StringValueNode description,
  @required NameNode name,
  List<DirectiveNode> directives = const [],
  FileSpan span,
})  : assert(values != null),
      assert(name != null),
      assert(directives != null),
      super(
        span: span,
        name: name,
        description: description,
        directives: directives,
      );