WeeStringExtension extension
String Extension
- on
Methods
-
removeEmptyLine(
) → String -
Available on String, provided by the WeeStringExtension extension
Removes empty lines from a multi-line string. -
toCamelCase(
{bool addSpace = false}) → String -
Available on String, provided by the WeeStringExtension extension
The optional parameteraddSpacedetermines whether to include spaces between the words in the resulting String. By default, it is set to false. If set to true, the resulting String will have spaces between the words. -
toCapitalize(
) → String -
Available on String, provided by the WeeStringExtension extension
Capitalizes the first letter of a string and converts the rest of the string to lowercase. -
toDate(
) → DateTime -
Available on String, provided by the WeeStringExtension extension
Examples of accepted strings: -
toPascalCase(
{bool addSpace = false}) → String -
Available on String, provided by the WeeStringExtension extension
Returns a String converted to PascalCase.