addLinesBefore method

void addLinesBefore(
  1. AFCommandContext context,
  2. RegExp match,
  3. List<String> lines, {
  4. 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);
  }
}