textwrap library Null safety

Classes

TextWrapper

Functions

fill(String text, {int width = 70, String initialIndent = '', String subsequentIndent = '', bool expandTabs = true, bool replaceWhitespace = true, bool fixSentenceEndings = false, bool breakLongWords = true, bool dropWhitespace = true, bool breakOnHyphens = true, int tabSize = 8, int maxLines = -1, String placeholder = ' ...'}) String
Fill a single paragraph of text.
shorten(String text, int width, {int maxLines = 1, String initialIndent = '', String subsequentIndent = '', bool expandTabs = true, bool replaceWhitespace = true, bool fixSentenceEndings = false, bool breakLongWords = true, bool dropWhitespace = true, bool breakOnHyphens = true, int tabSize = 8, String placeholder = ' ...'}) String
Collapse and truncate the given text to fit in the given width.
wrap(String text, {int width = 70, String initialIndent = '', String subsequentIndent = '', bool expandTabs = true, bool replaceWhitespace = true, bool fixSentenceEndings = false, bool breakLongWords = true, bool dropWhitespace = true, bool breakOnHyphens = true, int tabSize = 8, int maxLines = -1, String placeholder = ' ...'}) List<String>
Wrap a single paragraph of text.