Context constructor

Context({
  1. required DocumentNode schema,
  2. required TypeDefinitionNodeVisitor typeDefinitionNodeVisitor,
  3. required GeneratorOptions options,
  4. required SchemaMap schemaMap,
  5. required List<Name> path,
  6. required TypeDefinitionNode? currentType,
  7. required Name? currentFieldName,
  8. required Name? currentClassName,
  9. Name? alias,
  10. TypeDefinitionNode? ofUnion,
  11. required List<Definition> generatedClasses,
  12. required List<QueryInput> inputsClasses,
  13. required List<FragmentDefinitionNode> fragments,
  14. Set<EnumName> usedEnums = const {},
  15. Set<ClassName> usedInputObjects = const {},
  16. int align = 0,
  17. bool log = true,
})

Instantiates context for _GeneratorVisitor iterations.

Implementation

Context({
  required this.schema,
  required this.typeDefinitionNodeVisitor,
  required this.options,
  required this.schemaMap,
  required this.path,
  required this.currentType,
  required this.currentFieldName,
  required this.currentClassName,
  this.alias,
  this.ofUnion,
  required this.generatedClasses,
  required this.inputsClasses,
  required this.fragments,
  this.usedEnums = const {},
  this.usedInputObjects = const {},
  this.align = 0,
  this.log = true,
});