fill method

String fill(
  1. String text
)

Reformat the single paragraph in text to fit in lines of no more than width columns, and return a new string containing the entire wrapped ßparagraph.

Implementation

String fill(String text) {
  return wrap(text).join('\n');
}