Class constructor

Class(
  1. String name, {
  2. List<DocComment>? docComments,
  3. List<Annotation>? annotations,
  4. bool? abstract,
  5. Type? superClass,
  6. List<Type>? implements,
  7. List<Type>? mixins,
  8. List<Field>? fields,
  9. List<Constructor>? constructors,
  10. List<Method>? methods,
})

Implementation

Class(
  String name, {
  this.docComments,
  this.annotations,
  this.abstract,
  this.superClass,
  this.implements,
  this.mixins,
  this.fields,
  this.constructors,
  this.methods,
}) : this.name = IdentifierStartingWithUpperCase(name);