QueryDefinition constructor

QueryDefinition({
  1. required Name name,
  2. required String operationName,
  3. DocumentNode document = const DocumentNode(),
  4. Iterable<Definition> classes = const [],
  5. Iterable<QueryInput> inputs = const [],
  6. bool generateHelpers = false,
  7. bool generateQueries = false,
  8. String suffix = 'Query',
})

Instantiate a query definition.

Implementation

QueryDefinition({
  required Name name,
  required this.operationName,
  this.document = const DocumentNode(),
  this.classes = const [],
  this.inputs = const [],
  this.generateHelpers = false,
  this.generateQueries = false,
  this.suffix = 'Query',
})  : assert(hasValue(operationName)),
      super(name: name);