printFullText function

void printFullText(
  1. String text
)

Implementation

void printFullText(String text) {
  final pattern =
      RegExp('.{1,800}'); // Splits the text into 800-character chunks
  pattern.allMatches(text).forEach((match) => print(match.group(0)));
}