string_utils_dart library
Functions
-
contains(
String input, String substring, {bool caseSensitive = true}) → bool - Checks if the string contains a substring with case sensitivity options.
-
isPalindrome(
String input) → bool - Checks if the given string is a palindrome.
-
replaceAllOccurrences(
String input, String from, String to) → String - Replaces all occurrences of a substring with a new value.
-
reverse(
String input) → String - Reverses the given string.
-
slugify(
String input) → String - Converts the string into a URL-friendly slug.
-
toCamelCase(
String input) → String - Converts the string to camel case.
-
toTitleCase(
String input) → String - Converts the string to title case.
-
truncate(
String input, int length) → String - Truncates the string to a specified length and adds an ellipsis if needed.