StringExtensions extension
- on
Properties
- capitalize → String
-
Available on String, provided by the StringExtensions extension
Returns the capitalized version of this string.no setter - isBlank → bool
-
Available on String, provided by the StringExtensions extension
Returnstrueif this string is a blank by any chance.no setter - isEmail → bool
-
Available on String, provided by the StringExtensions extension
Returnstrueif this string is a valid email address.no setter - isPalindrome → bool
-
Available on String, provided by the StringExtensions extension
Checks whether theStringis a palindrome.no setter - isPhoneNumber → bool
-
Available on String, provided by the StringExtensions extension
Returnstrueif this string is a valid phone number.no setter - isUrl → bool
-
Available on String, provided by the StringExtensions extension
Returnstrueif this string is a valid URL.no setter -
parseJson
→ Map<
String, dynamic> ? -
Available on String, provided by the StringExtensions extension
Returns a parsed jsonmapof this string.no setter - removeNumbers → String
-
Available on String, provided by the StringExtensions extension
Removes all the numbers from theString.no setter - removeWhiteSpace → String
-
Available on String, provided by the StringExtensions extension
Removes all the white spaces from theString.no setter - reverse → String
-
Available on String, provided by the StringExtensions extension
Returns the reversed version of this string.no setter - toDate → DateTime?
-
Available on String, provided by the StringExtensions extension
Returns the date time value of this string.no setter - toDouble → double?
-
Available on String, provided by the StringExtensions extension
Returns the double value of this string.no setter - toInt → int?
-
Available on String, provided by the StringExtensions extension
Returns the int value of this string.no setter -
words
→ List<
String> -
Available on String, provided by the StringExtensions extension
Returns a list of words in this string.no setter
Methods
-
truncate(
int length) → String -
Available on String, provided by the StringExtensions extension
Truncates theStringwhen more thanlengthcharacters exist.