StringExtensions extension

on

Properties

isBlank → bool

Available on String, provided by the StringExtensions extension

Whether this string contains only whitespaces.
no setter

Methods

dedent([int length = 4]) → DedentedText

Available on String, provided by the StringExtensions extension

Removes up to length characters of leading whitespace.
indentation() → int

Available on String, provided by the StringExtensions extension

Calculates the length of indentation a String has.
last([int n = 1]) → String

Available on String, provided by the StringExtensions extension

Returns the last character.
prependSpace(int width) → String

Available on String, provided by the StringExtensions extension

Adds width of spaces to the beginning of this string.
toLines() → List<Line>

Available on String, provided by the StringExtensions extension

Converts this string to a list of Line.