ClassDefinition constructor

ClassDefinition({
  1. required Name name,
  2. Iterable<ClassProperty> properties = const [],
  3. Name? extension,
  4. Iterable<String> implementations = const [],
  5. Iterable<FragmentName> mixins = const [],
  6. Map<String, Name> factoryPossibilities = const {},
  7. ClassPropertyName? typeNameField,
  8. 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);