printWrapped function Null safety

void printWrapped(
  1. String text
)

Implementation

void printWrapped(String text) {
  final pattern = RegExp('.{1,800}');
  for (final match in pattern.allMatches(text)) {
    debugPrint(match.group(0));
  }
}