TextWrapper class
Constructors
-
TextWrapper({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 = ' ...'})
-
Methods
-
fill(String text)
→ String
-
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.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
wrap(String text)
→ List<String>
-
Reformat the single paragraph in
text
so it fits in lines of no more
than width columns, and return a list of wrapped lines.