buildClass function Null safety

Class buildClass(
  1. ClassElement clazz
)

Implementation

Class buildClass(ClassElement clazz) {
  return Class(
    (b) => b
      ..name = '${clazz.displayName}Generator'
      ..extend = refer('Generator')
      ..methods.add(_buildGenerateMethod(clazz)),
  );
}