addClass static method

String addClass({
  1. required String className,
  2. required String body,
  3. AnnotationTypes? type,
})

Implementation

static String addClass({required String className, required String body, AnnotationTypes? type}) {
  String name = '${elementsMainName.capitalizeFirst}${className.capitalizeFirst}${type?.name.capitalizeFirst}';
  return addLine('class $name {$body}');
}