getEnums method

String getEnums(
  1. String className
)

Implementation

String getEnums(String className) {
  return where((element) => element.isEnum)
      .map((e) => e.getEnum(className).toTemplateString())
      .where((element) => element.isNotEmpty)
      .join('\n');
}