printLongLine static method

void printLongLine(
  1. String text
)

Implementation

static void printLongLine(String text) {
  final pattern = new RegExp('.{1,800}'); // 800 is the size of each chunk
  pattern.allMatches(text).forEach((match) => print(match.group(0)));
}