getImports static method

List<String> getImports(
  1. InterfaceElement element
)

Implementation

static List<String> getImports(InterfaceElement element) {
  final mainClass = element.enclosingElement.library;
  List<String> result = [_getImport(mainClass)];
  for (final cls in mainClass.importedLibraries) {
    result.add(_getImport(cls));
  }
  return result;
}