StringExtensions extension
- on
Properties
- isBlank → bool
-
Available on String, provided by the StringExtensions extension
Returns true if the string is empty or only whitespace.no setter
Methods
-
capitalizeFirstLetterOfEverySentence(
) → String -
Available on String, provided by the StringExtensions extension
Capitalizes the first letter of every sentence Sentences are determined by periods (.), exclamation marks (!), and question marks (?) -
convertToListInt(
) → List< int> -
Available on String, provided by the StringExtensions extension
Converts a string representation of a list of integers to a List -
convertToListString(
) → List< String> -
Available on String, provided by the StringExtensions extension
-
ifBlank(
String fallback) → String -
Available on String, provided by the StringExtensions extension
Returnsfallbackwhen this string is blank. -
parseBool(
) → bool -
Available on String, provided by the StringExtensions extension
-
removeDiacritics(
) → String -
Available on String, provided by the StringExtensions extension
Removes common latin diacritics for normalized matching/search. -
toDoubleOrNull(
) → double? -
Available on String, provided by the StringExtensions extension
Returns null when parsing fails. -
toIntOrNull(
) → int? -
Available on String, provided by the StringExtensions extension
Returns null when parsing fails. -
toTitleCase(
) → String -
Available on String, provided by the StringExtensions extension
Converts identifiers and phrases to Title Case. -
truncate(
int maxLength, {String ellipsis = '...'}) → String -
Available on String, provided by the StringExtensions extension
Truncates the string tomaxLengthcharacters. If the string is longer thanmaxLength, it is cut andellipsis(default '...') is appended. The returned string's total length will not exceedmaxLength.