StringExt extension

on

Properties

isAlphabetic bool

Available on String?, provided by the StringExt extension

isAlphabetic: checks if the string is alphabetic
no setter
isAlphaNumeric bool

Available on String?, provided by the StringExt extension

isAlphaNumeric: checks if the string is alpha numeric
no 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 alphabetic
no setter
isNotNullOrAlphaNumeric bool

Available on String?, provided by the StringExt extension

isNotNullOrAlphaNumeric: checks if the string is not null or alpha numeric
no setter
isNotNullOrEmpty bool

Available on String?, provided by the StringExt extension

isNotNullOrEmpty: checks if the string is not null or empty
no setter
isNotNullOrNumeric bool

Available on String?, provided by the StringExt extension

isNotNullOrNumeric: checks if the string is not null or numeric
no setter
isNotNullOrWhiteSpace bool

Available on String?, provided by the StringExt extension

isNotNullOrWhiteSpace: checks if the string is not null, empty, or whitespace
no setter
isNullOrAlphabetic bool

Available on String?, provided by the StringExt extension

isNullOrAlphabetic: checks if the string is null or alphabetic
no setter
isNullOrAlphaNumeric bool

Available on String?, provided by the StringExt extension

isNullOrAlphaNumeric: checks if the string is null or alpha numeric
no setter
isNullOrEmpty bool

Available on String?, provided by the StringExt extension

isNullOrEmpty: checks if the string is null or empty
no setter
isNullOrNumeric bool

Available on String?, provided by the StringExt extension

isNullOrNumeric: checks if the string is null or numeric
no setter
isNullOrWhiteSpace bool

Available on String?, provided by the StringExt extension

isNullOrWhiteSpace: checks if the string is null, empty, or whitespace
no setter
isNumeric bool

Available on String?, provided by the StringExt extension

isNumeric: checks if the string is numeric
no setter
isPalinDroom bool

Available on String?, provided by the StringExt extension

isPalinDroom: checks if the string is a palindrome
no setter
removeEmptyLines String

Available on String?, provided by the StringExt extension

removeExtraSpaces: removes extra spaces from a string
no setter
removeExtraNewLines String

Available on String?, provided by the StringExt extension

removeExtraNewLines: removes extra new lines from a string
no setter
removeExtraReturns String

Available on String?, provided by the StringExt extension

removeExtraReturns: removes extra returns from a string
no setter
removeExtraSpaces String

Available on String?, provided by the StringExt extension

removeExtraSpaces: removes extra spaces from a string
no setter
removeExtraTabs String

Available on String?, provided by the StringExt extension

removeExtraTabs: removes extra tabs from a string
no setter
removeUnCommonCharacters String

Available on String?, provided by the StringExt extension

removeUnCommonCharacters: removes common characters from a string
no setter
reverse String

Available on String?, provided by the StringExt extension

reverse: reverses a string
no 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 lowercase
no setter
toUpper String

Available on String?, provided by the StringExt extension

toUpper: converts all characters to uppercase
no setter
trim String

Available on String?, provided by the StringExt extension

toTitleCase: converts the first character of each word to uppercase
no setter
trimEnd String

Available on String?, provided by the StringExt extension

trimEnd: removes all trailing whitespace from a string
no setter
trimStart String

Available on String?, provided by the StringExt extension

trimStart: removes all leading whitespace from a string
no setter

Methods

countOccurrences(String subString) int

Available on String?, provided by the StringExt extension

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

Available on String?, provided by the StringExt extension

substringFromEnd: returns a substring from the end of the string
padRight(int width, [String? paddingChar]) String

Available on String?, provided by the StringExt extension

padRight: pads the string on the right side if it is smaller than the specified width
prefixWith(String prefix) String

Available on String?, provided by the StringExt extension

prefixWith: Is this null or empty
removeAll(String subString) String

Available on String?, provided by the StringExt extension

remove: removes all occurrences of a substring
removeExtraCharactersExcept(String allowedCharacters) String

Available on String?, provided by the StringExt extension

removeExtraCharactersExcept: removes extra characters from a string except the ones specified
removeExtraCharactersFromEnd(String charactersToRemove) String

Available on String?, provided by the StringExt extension

removeExtraCharactersFromEnd: removes extra characters from the end of a string
removeExtraCharactersFromStart(String charactersToRemove) String

Available on String?, provided by the StringExt extension

removeExtraCharactersFromStart: removes extra characters from the start of a string
removeExtraCharactersOnly(String charactersToRemove) String

Available on String?, provided by the StringExt extension

removeExtraCharactersOnly: removes extra characters from a string
removeFirst(String subString) String

Available on String?, provided by the StringExt extension

removeFirst: removes the first occurrence of a substring
removeFirstNCharacters(int n) String

Available on String?, provided by the StringExt extension

removeFirstNCharacters: removes the first n characters
removeLast(String subString) String

Available on String?, provided by the StringExt extension

removeLast: removes the last occurrence of a substring
removeLastNCharacters(int n) String

Available on String?, provided by the StringExt extension

removeLastNCharacters: removes the last n characters
removeRange(int startIndex, int endIndex) String

Available on String?, provided by the StringExt extension

removeRange: removes all characters in the range
removeSecond(String subString) String

Available on String?, provided by the StringExt extension

removeSecond: removes the second occurrence of a substring
removeWhere(bool test(String element)) String

Available on String?, provided by the StringExt extension

removeWhere: removes all characters that satisfy the test
replace(String oldValue, String newValue) String

Available on String?, provided by the StringExt extension

replace: replaces all occurrences of a substring
splitAndTrim(String delimiter) List<String>

Available on String?, provided by the StringExt extension

replaceFirst: replaces the first occurrence of a substring
substring(int startIndex, [int? endIndex]) String

Available on String?, provided by the StringExt extension

trimAll: removes all spaces from a string