importAll method
Implementation
void importAll(AFCommandContext context, List<String> imports, {
bool preventDuplicates = true
}) {
// find the insertion point.
final lastImportLine = _findLastImportLine();
var insertOffset = lastImportLine == 0 ? 0 : 1;
for(final import in imports) {
if(!preventDuplicates || !isDuplicateDeclaration(context, [import])) {
buffer.addLineBeforeIndex(context, lastImportLine+insertOffset, import);
insertOffset++;
}
}
}