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 = ' ...'})

Properties

breakLongWords bool
final
breakOnHyphens bool
final
dropWhitespace bool
final
expandTabs bool
final
fixSentenceEndings bool
final
hashCode int
The hash code for this object.
no setterinherited
initialIndent String
final
maxLines int
final
placeholder String
final
replaceWhitespace bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subsequentIndent String
final
tabSize int
final
width int
final

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.

Operators

operator ==(Object other) bool
The equality operator.
inherited