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 tolengthcharacters of leading whitespace. -
indentation(
) → int -
Available on String, provided by the StringExtensions extension
Calculates the length of indentation aStringhas. -
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
Addswidthof 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.