StringExtensions extension
- on
Properties
- capitalize → String
-
Available on String, provided by the StringExtensions extension
Returns the capitalized version of this string.no setter - isAlpha → bool
-
Available on String, provided by the StringExtensions extension
Checks if this string is alphabetic only.no setter - isAlphaNumeric → bool
-
Available on String, provided by the StringExtensions extension
Checks if this string is alphanumeric only.no setter - isBlank → bool
-
Available on String, provided by the StringExtensions extension
Returnstrueif this string is a blank by any chance.no setter - isDigit → bool
-
Available on String, provided by the StringExtensions extension
Checks if this string is digit only.no setter - isEmail → bool
-
Available on String, provided by the StringExtensions extension
Returnstrueif this string is a valid email address.no setter - isJson → bool
-
Available on String, provided by the StringExtensions extension
Checks if this string is a valid JSON string.no setter - isNotBlank → bool
-
Available on String, provided by the StringExtensions extension
Returnstrueif this string is a not blank by any chance.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 - isUUID → bool
-
Available on String, provided by the StringExtensions extension
Checks if this string is a valid UUID v4 format.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 - toColor → Color?
-
Available on String, provided by the StringExtensions extension
Returns the color value 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
-
containsAll(
List< String> values) → bool -
Available on String, provided by the StringExtensions extension
Checks if this string contains all the givenvalues. -
containsAny(
List< String> values) → bool -
Available on String, provided by the StringExtensions extension
Checks if this string contains any of the givenvalues. -
copyToClipboard(
) → void -
Available on String, provided by the StringExtensions extension
Copies this string to the clipboard. -
match(
String pattern) → bool -
Available on String, provided by the StringExtensions extension
Matches this string against the givenpattern. -
truncate(
int length) → String -
Available on String, provided by the StringExtensions extension
Truncates theStringwhen more thanlengthcharacters exist.