addLinesBeforeIdx method

void addLinesBeforeIdx(
  1. AFCommandContext context,
  2. int idx,
  3. List<String> toInsert
)

Adds a set of line before the specified index.

Implementation

void addLinesBeforeIdx(AFCommandContext context, int idx, List<String> toInsert) {
  lines.insertAll(idx, toInsert);
}