StringExtensions extension
- on
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
-
parseBool(
) → bool -
Available on String, provided by the StringExtensions extension
-
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.