Context constructor
Context({
- required DocumentNode schema,
- required TypeDefinitionNodeVisitor typeDefinitionNodeVisitor,
- required GeneratorOptions options,
- required SchemaMap schemaMap,
- required List<
Name> path, - required TypeDefinitionNode? currentType,
- required Name? currentFieldName,
- required Name? currentClassName,
- Name? alias,
- TypeDefinitionNode? ofUnion,
- required List<
Definition> generatedClasses, - required List<
QueryInput> inputsClasses, - required List<
FragmentDefinitionNode> fragments, - Set<
EnumName> usedEnums = const {}, - Set<
ClassName> usedInputObjects = const {}, - int align = 0,
- 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,
});