getImports static method
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;
}