classFilePathsFromAnnotations static method

Map<String, String> classFilePathsFromAnnotations(
  1. Iterable<AnnotatedElement> annotations
)

Implementation

static Map<String, String> classFilePathsFromAnnotations(Iterable<AnnotatedElement> annotations) {
  return Map<String, String>.fromIterable(
    annotations,
    key: (annotation) => annotation.element.name,
    value: (annotation) {
      final fileName = StringHelpers.snakeCase(annotation.element.name);
      return '$fileName.dart';
    },
  );
}