ReadonlydrawerString inserted at the end of a line when two non-whitespace characters are separated.
Static ReadonlydefaultBreaks on the common '\n' and the abomination known as '\r\n'.
Static ReadonlyneverNever breaks.
Draws text wrapped to a maximum width.
Splits text into discrete lines based on line breaks and, optionally, width. The resulting lines come with size information.
Optional maximum width to wrap lines at. When left at its default value of Infinity, lines will only be split at line breaks.
Style used to measure the text. Has no effect if maxWidth is Infinity.
Function that will be used to identify explicit line breaks, like '\n' in strings. The default implementation is TextWrapper.defaultLineBreakFn.
StaticmakeCreates a line break function that just looks for the specified substrings.
Note that substrings are checked one after the other, so if it returns 'a' before 'ab', the latter pattern will never be matched.
Substrings that are considered line breaks. Be careful, this is captured by the returned function!
Whether to include the matched substring in the result when breaking.
Scales strings' measured heights by this. Values <1 make lines condensed, and values >1 make them sparse.