StringExtensions extension

An extension on the String class that provides methods for transforming text.

This extension adds various text transformation methods such as converting a string to title case, small case, camel case, hyphen case, snake case, and capitalizing the first letter of each word. These methods can be used to modify string formats for various use cases.

on

Properties

containsAvoidableDirectory bool

Available on String, provided by the StringExtensions extension

no setter
containsAvoidableFiles bool

Available on String, provided by the StringExtensions extension

no setter
initials String

Available on String, provided by the StringExtensions extension

!~~~~~~~~~~~~~~~~~~~~~~~ Initials ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
no setter
obfuscate String

Available on String, provided by the StringExtensions extension

!~~~~~~~~~~~~~~~~~~~~~~~ Obfuscate ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
no setter
toCamelCase String

Available on String, provided by the StringExtensions extension

Converts the string to camel case.
no setter
toDateTime DateTime?

Available on String, provided by the StringExtensions extension

!~~~~~~~~~~~~~~~~~~~~~~~ To Date Time ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
no setter
toKebabCase String

Available on String, provided by the StringExtensions extension

Converts the string to hyphen case.
no setter
toPascalCase String

Available on String, provided by the StringExtensions extension

Capitalizes the first letter of each word in the string.
no setter
toSmallCaseText String

Available on String, provided by the StringExtensions extension

Converts the string to small case text.
no setter
toSnakeCase String

Available on String, provided by the StringExtensions extension

Converts the string to snake_case.
no setter
toTitleCase String

Available on String, provided by the StringExtensions extension

Converts the string to title case.
no setter
tran String

Available on String, provided by the StringExtensions extension

no setter
withCurrencySymbol String

Available on String, provided by the StringExtensions extension

!~~~~~~~~~~~~~~~~~~~~~~~ Currency Symbol ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
no setter

Methods

replaceCaseWith(String oldValue, String newValue) String

Available on String, provided by the StringExtensions extension

toEnum<T>(List<T> enumValues) → T?

Available on String, provided by the StringExtensions extension

!~~~~~~~~~~~~~~~~~~~~~~~ string to enum ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
validate(String? v) String?

Available on String, provided by the StringExtensions extension