emptyLines static method

List<int> emptyLines(
  1. int n
)

Create lines empy

Implementation

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