getLineCount method

int getLineCount(
  1. int start,
  2. int end
)

Implementation

int getLineCount(int start, int end) {
  String value = new String.fromCharCodes(input.getRange(start, end));
  return value.split('\n').length;
}