addLinesBefore method
void
addLinesBefore(
- AFCommandContext context,
- RegExp match,
- List<
String> lines, { - bool preventDuplicates = true,
Implementation
void addLinesBefore(AFCommandContext context, RegExp match, List<String> lines, {
bool preventDuplicates = true
}) {
if(!preventDuplicates || !isDuplicateDeclaration(context, lines)) {
buffer.addLinesBefore(context, match, lines);
}
}