StringExtension extension
- on
Properties
- camelCase → String
-
Available on String?, provided by the StringExtension extension
Converts string to camelCase (e.g., "hello world" → "helloWorld")no setter - capitalize → String
-
Available on String?, provided by the StringExtension extension
Returns the string with the first letter capitalized.no setter - isAadhaar → bool
-
Available on String?, provided by the StringExtension extension
Returns true if the string is a valid Indian Aadhaar number.no setter - isAlphabetOnly → bool
-
Available on String?, provided by the StringExtension extension
Returns true if the string contains only alphabets.no setter - isBasicPassword → bool
-
Available on String?, provided by the StringExtension extension
Validates a basic password (at least 6 digits).no setter - isEmail → bool
-
Available on String?, provided by the StringExtension extension
Returns true if the string is a valid email address.no setter - isNullOrEmpty → bool
-
Available on String?, provided by the StringExtension extension
no setter - isNumeric → bool
-
Available on String?, provided by the StringExtension extension
Returns true if the string represents a numeric value.no setter - isPan → bool
-
Available on String?, provided by the StringExtension extension
Returns true if the string is a valid Indian PAN card format.no setter - isPhone → bool
-
Available on String?, provided by the StringExtension extension
Returns true if the string is a valid Indian phone number (10 digits).no setter - isStrongPassword → bool
-
Available on String?, provided by the StringExtension extension
Validates a strong password (8–16 chars, upper, lower, number, special).no setter - isUrl → bool
-
Available on String?, provided by the StringExtension extension
Returns true if the string is a valid URL.no setter - slugify → String
-
Available on String?, provided by the StringExtension extension
Converts string to URL slug (e.g., "Hello World!" → "hello-world")no setter - snakeCase → String
-
Available on String?, provided by the StringExtension extension
Converts string to snake_case.no setter - titleCase → String
-
Available on String?, provided by the StringExtension extension
Returns the string in title case (each word starts with an uppercase letter).no setter - unslugify → String
-
Available on String?, provided by the StringExtension extension
Converts slug to string (e.g., "hello-world" → "Hello World")no setter
Methods
-
isMatch(
String pattern) → bool -
Available on String?, provided by the StringExtension extension
Returns true if the string matches the given regular expression pattern. -
toEnum<
T extends Enum> ({required List< T> values, T? fallback}) → T -
Available on String?, provided by the StringExtension extension
Returns enum class from string