DirectiveDefinitionNode constructor

const DirectiveDefinitionNode(
  1. {StringValueNode description,
  2. @required NameNode name,
  3. List<InputValueDefinitionNode> args: const [],
  4. List<DirectiveLocation> locations: const [],
  5. bool repeatable: false,
  6. FileSpan span}
)

Implementation

const DirectiveDefinitionNode({
  this.description,
  @required NameNode name,
  this.args = const [],
  this.locations = const [],
  this.repeatable = false,
  FileSpan span,
})  : assert(name != null),
      assert(args != null),
      assert(locations != null),
      assert(repeatable != null),
      super(
        name: name,
        span: span,
      );