consoleChunksOutput function

dynamic consoleChunksOutput(
  1. String message
)

It sends everything to the system console.

Implementation

dynamic consoleChunksOutput(String message) {
  if (message.length > _MAX_LENGTH) {
    final List<String> chunks = [];
    const int chunkSize = _MAX_LENGTH;
    for (var i = 0; i < message.length; i += chunkSize) {
      chunks.add(message.substring(
          i, i + chunkSize > message.length ? message.length : i + chunkSize));
    }
    chunks.forEach(_defaultFlutterOutput);
  } else {
    _defaultFlutterOutput(message);
  }
}