printWrapped function

void printWrapped(
  1. Object text
)

Implementation

void printWrapped(Object text) {
  final pattern = RegExp('.{1,800}'); // 800 is the size of each chunk
  pattern
      .allMatches(text.toString())
      .forEach((match) => logger(match.group(0)));
}