StringExtensions extension
- on
Properties
- isBlank → bool
-
Is empty string or only contains whitespaces.
no setter
- isNotBlank → bool
-
Returns negation of isBlank.
no setter
Methods
-
capitalize(
) → String -
firstLetterUppercase(
) → String -
ifBlank(
[String? defaultValue]) → String? -
ifEmpty(
[String? defaultValue]) → String? -
lastNCharacters(
int limit) → String - Returns last N characters. When the string does not have N characters, returns rest.
-
normalizeUrl(
) → String - Normalize supposedly string containing URL
-
rtrim(
String chars) → String -
Removes any trailing char from
chars
. -
shorten(
int maxLength) → String -
stripNewLines(
[String placeholder = ' ']) → String -
stripOuterQuotes(
) → String