writeClassDeclaration abstract method
void
writeClassDeclaration(})
Write 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});