writeClassDeclaration abstract method

void writeClassDeclaration(
  1. String name, {
  2. Iterable<DartType>? interfaces,
  3. bool isAbstract = false,
  4. void membersWriter()?,
  5. Iterable<DartType>? mixins,
  6. String? nameGroupName,
  7. DartType? superclass,
  8. String? superclassGroupName,
})

Writes the code for a declaration of a class with the given name.

If a list of interfaces is provided, then the class will implement those interfaces. If isAbstract is true, then the class will be abstract. If a membersWriter is provided, then it will be invoked to allow members to be generated. If a list of mixins is provided, then the class will mix in those classes. If a nameGroupName is provided, then the name of the class will be included in the linked edit group with that name. If a superclass is given then it will be the superclass of the class. (If a list of mixins is provided but no superclass is given then the class will extend Object.)

Implementation

void writeClassDeclaration(String name,
    {Iterable<DartType>? interfaces,
    bool isAbstract = false,
    void Function()? membersWriter,
    Iterable<DartType>? mixins,
    String? nameGroupName,
    DartType? superclass,
    String? superclassGroupName});