StringExt extension
- on
Properties
- isAlphabetic → bool
-
Available on String?, provided by the StringExt extension
isAlphabetic: checks if the string is alphabeticno setter - isAlphaNumeric → bool
-
Available on String?, provided by the StringExt extension
isAlphaNumeric: checks if the string is alpha numericno setter - isEmptyTrim → bool
-
Available on String?, provided by the StringExt extension
isEmptyTrim: Is this empty (trimmed)no setter - isNotEmptyTrim → bool
-
Available on String?, provided by the StringExt extension
isNotEmptyTrim: Is this not empty (trimmed)no setter - isNotNullOrAlphabetic → bool
-
Available on String?, provided by the StringExt extension
isNotNullOrAlphabetic: checks if the string is not null or alphabeticno setter - isNotNullOrAlphaNumeric → bool
-
Available on String?, provided by the StringExt extension
isNotNullOrAlphaNumeric: checks if the string is not null or alpha numericno setter - isNotNullOrEmpty → bool
-
Available on String?, provided by the StringExt extension
isNotNullOrEmpty: checks if the string is not null or emptyno setter - isNotNullOrNumeric → bool
-
Available on String?, provided by the StringExt extension
isNotNullOrNumeric: checks if the string is not null or numericno setter - isNotNullOrWhiteSpace → bool
-
Available on String?, provided by the StringExt extension
isNotNullOrWhiteSpace: checks if the string is not null, empty, or whitespaceno setter - isNullOrAlphabetic → bool
-
Available on String?, provided by the StringExt extension
isNullOrAlphabetic: checks if the string is null or alphabeticno setter - isNullOrAlphaNumeric → bool
-
Available on String?, provided by the StringExt extension
isNullOrAlphaNumeric: checks if the string is null or alpha numericno setter - isNullOrEmpty → bool
-
Available on String?, provided by the StringExt extension
isNullOrEmpty: checks if the string is null or emptyno setter - isNullOrNumeric → bool
-
Available on String?, provided by the StringExt extension
isNullOrNumeric: checks if the string is null or numericno setter - isNullOrWhiteSpace → bool
-
Available on String?, provided by the StringExt extension
isNullOrWhiteSpace: checks if the string is null, empty, or whitespaceno setter - isNumeric → bool
-
Available on String?, provided by the StringExt extension
isNumeric: checks if the string is numericno setter - isPalinDroom → bool
-
Available on String?, provided by the StringExt extension
isPalinDroom: checks if the string is a palindromeno setter - removeEmptyLines → String
-
Available on String?, provided by the StringExt extension
removeExtraSpaces: removes extra spaces from a stringno setter - removeExtraNewLines → String
-
Available on String?, provided by the StringExt extension
removeExtraNewLines: removes extra new lines from a stringno setter - removeExtraReturns → String
-
Available on String?, provided by the StringExt extension
removeExtraReturns: removes extra returns from a stringno setter - removeExtraSpaces → String
-
Available on String?, provided by the StringExt extension
removeExtraSpaces: removes extra spaces from a stringno setter - removeExtraTabs → String
-
Available on String?, provided by the StringExt extension
removeExtraTabs: removes extra tabs from a stringno setter - removeUnCommonCharacters → String
-
Available on String?, provided by the StringExt extension
removeUnCommonCharacters: removes common characters from a stringno setter - reverse → String
-
Available on String?, provided by the StringExt extension
reverse: reverses a stringno setter - toBool → bool
-
Available on String?, provided by the StringExt extension
toBool: convert a string to bool ('true' == true, 'false' == false, '1' == true, '0' == false)no setter - toLower → String
-
Available on String?, provided by the StringExt extension
toLower: converts all characters to lowercaseno setter - toUpper → String
-
Available on String?, provided by the StringExt extension
toUpper: converts all characters to uppercaseno setter - trim → String
-
Available on String?, provided by the StringExt extension
toTitleCase: converts the first character of each word to uppercaseno setter - trimEnd → String
-
Available on String?, provided by the StringExt extension
trimEnd: removes all trailing whitespace from a stringno setter - trimStart → String
-
Available on String?, provided by the StringExt extension
trimStart: removes all leading whitespace from a stringno setter
Methods
-
countOccurrences(
String subString) → int -
isValidEmail(
{String? regex}) → bool -
Available on String?, provided by the StringExt extension
isValidEmail(string regex): checks if the string is a valid email address -
padLeft(
int width, [String? paddingChar]) → String - substringFromEnd: returns a substring from the end of the string
-
padRight(
int width, [String? paddingChar]) → String - padRight: pads the string on the right side if it is smaller than the specified width
-
prefixWith(
String prefix) → String - prefixWith: Is this null or empty
-
removeAll(
String subString) → String - remove: removes all occurrences of a substring
-
removeExtraCharactersExcept(
String allowedCharacters) → String - removeExtraCharactersExcept: removes extra characters from a string except the ones specified
-
removeExtraCharactersFromEnd(
String charactersToRemove) → String - removeExtraCharactersFromEnd: removes extra characters from the end of a string
-
removeExtraCharactersFromStart(
String charactersToRemove) → String - removeExtraCharactersFromStart: removes extra characters from the start of a string
-
removeExtraCharactersOnly(
String charactersToRemove) → String - removeExtraCharactersOnly: removes extra characters from a string
-
removeFirst(
String subString) → String - removeFirst: removes the first occurrence of a substring
-
removeFirstNCharacters(
int n) → String - removeFirstNCharacters: removes the first n characters
-
removeLast(
String subString) → String - removeLast: removes the last occurrence of a substring
-
removeLastNCharacters(
int n) → String - removeLastNCharacters: removes the last n characters
-
removeRange(
int startIndex, int endIndex) → String - removeRange: removes all characters in the range
-
removeSecond(
String subString) → String - removeSecond: removes the second occurrence of a substring
-
removeWhere(
bool test(String element)) → String - removeWhere: removes all characters that satisfy the test
-
replace(
String oldValue, String newValue) → String - replace: replaces all occurrences of a substring
-
splitAndTrim(
String delimiter) → List< String> - replaceFirst: replaces the first occurrence of a substring
-
substring(
int startIndex, [int? endIndex]) → String - trimAll: removes all spaces from a string