emptyLines method

List<int> emptyLines(
  1. int n
)

Skips n lines

Similar to feed but uses an alternative command

Implementation

List<int> emptyLines(int n) {
  List<int> bytes = [];
  if (n > 0) {
    bytes += List.filled(n, '\n').join().codeUnits;
  }
  return bytes;
}