StringExtensions extension
- on
Methods
-
dedent(
[int length = 4]) → DedentedText -
Removes up to
length
characters of leading whitespace. -
indentation(
) → int -
Calculates the length of indentation a
String
has. -
last(
[int n = 1]) → String - Returns the last character.
-
prependSpace(
int width) → String -
Adds
width
of spaces to the beginning of this string. -
toLines(
) → List< Line> - Converts this string to a list of Line.