splitInLines function
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);