buildInit function Null safety

Spec buildInit(
  1. List<Element> classesToGenerate
)

Implementation

Spec buildInit(List<Element> classesToGenerate) {
  final mapperImpl = Method((b) => b
    ..name = '\$init'
    ..body = _generateBody(classesToGenerate));
  return mapperImpl;
}