splitInLines function

List<String> splitInLines(
  1. String string,
  2. int lineLength, {
  3. String? separator,
  4. int? firstLineDecrease,
})

Divides a String in lines of the length required. The default separator is blank, but it can be set a different char It is possible to set a different length for the first line.

Implementation

List<String> splitInLines(String string, int lineLength,
        {String? separator, int? firstLineDecrease}) =>
    string.splitInLines(lineLength,
        separator: separator, firstLineDecrease: firstLineDecrease);