printLog method
prints log lines breaking them into multiple lines if its too long. src: https://github.com/flutter/flutter/issues/22665#issuecomment-458186456
Implementation
@override
void printLog(String logLine, {String? level}) {
if (maxLineSize == -1) {
debugPrint(logLine);
} else {
final pattern = RegExp('.{1,$maxLineSize}');
pattern
.allMatches(logLine)
.forEach((match) => debugPrint(match.group(0)));
}
}