QueryDefinition constructor
QueryDefinition({
- required Name name,
- required String operationName,
- DocumentNode document = const DocumentNode(),
- Iterable<
Definition> classes = const [], - Iterable<
QueryInput> inputs = const [], - bool generateHelpers = false,
- bool generateQueries = false,
- 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);