writeMixinDeclaration abstract method

void writeMixinDeclaration(
  1. String name, {
  2. Iterable<DartType>? interfaces,
  3. void membersWriter()?,
  4. String? nameGroupName,
  5. Iterable<DartType>? superclassConstraints,
})

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

If a list of interfaces is provided, then the mixin will implement those interfaces. If a membersWriter is provided, then it will be invoked to allow members to be generated. If a nameGroupName is provided, then the name of the class will be included in the linked edit group with that name.

Implementation

void writeMixinDeclaration(String name,
    {Iterable<DartType>? interfaces,
    void Function()? membersWriter,
    String? nameGroupName,
    Iterable<DartType>? superclassConstraints});