addLineBeforeIndex method

void addLineBeforeIndex(
  1. AFCommandContext context,
  2. int idx,
  3. String line
)

Adds a single line before the specified index.

Implementation

void addLineBeforeIndex(AFCommandContext context, int idx, String line) {
  lines.insert(idx, line);
}