ClassDefinition constructor
ClassDefinition({
- required Name name,
- Iterable<
ClassProperty> properties = const [], - Name? extension,
- Iterable<
String> implementations = const [], - Iterable<
FragmentName> mixins = const [], - Map<
String, Name> factoryPossibilities = const {}, - ClassPropertyName? typeNameField,
- bool isInput = false,
Instantiate a class definition.
Implementation
ClassDefinition({
required Name name,
this.properties = const [],
this.extension,
this.implementations = const [],
this.mixins = const [],
this.factoryPossibilities = const {},
ClassPropertyName? typeNameField,
this.isInput = false,
}) : typeNameField = typeNameField ?? ClassPropertyName(name: '__typename'),
super(name: name);