StringExtensions extension

on

Properties

camelCase String

Available on String, provided by the StringExtensions extension

no setter
checkID String

Available on String, provided by the StringExtensions extension

Check Octopoos referral ID
no setter
constantCase String

Available on String, provided by the StringExtensions extension

no setter
dotCase String

Available on String, provided by the StringExtensions extension

no setter
getFirst String

Available on String, provided by the StringExtensions extension

Get First Word
no setter
getFirstLetter String

Available on String, provided by the StringExtensions extension

Get first letter from word
no setter
getFirstSlice String

Available on String, provided by the StringExtensions extension

Get first Slice before space
no setter
getTentacle String

Available on String, provided by the StringExtensions extension

Get title tentacle (First two words)
no setter
hasSpecialChars bool

Available on String, provided by the StringExtensions extension

Check if specials contains
no setter
headerCase String

Available on String, provided by the StringExtensions extension

no setter
isAscii bool

Available on String, provided by the StringExtensions extension

no setter
isBlank bool

Available on String, provided by the StringExtensions extension

Returns true if this string is empty or consists solely of whitespace characters.
no setter
isDouble bool

Available on String, provided by the StringExtensions extension

no setter
isInt bool

Available on String, provided by the StringExtensions extension

no setter
isLatin1 bool

Available on String, provided by the StringExtensions extension

no setter
isLowerCase bool

Available on String, provided by the StringExtensions extension

Returns true if the whole string is lower case.
no setter
isNotBlank bool

Available on String, provided by the StringExtensions extension

Returns true if s is neither null, empty nor is solely made of whitespace characters.
no setter
isNullOrWhiteSpace bool

Available on String, provided by the StringExtensions extension

Indicates whether a specified string is null, empty, or consists only of white-space characters.
no setter
isUpperCase bool

Available on String, provided by the StringExtensions extension

Returns true if the whole string is upper case.
no setter
isValidatePassword bool

Available on String, provided by the StringExtensions extension

Extension to validate minimum password lenght To use: 'vasyl mayovets'.isValidName;
no setter
isValidEmail bool

Available on String, provided by the StringExtensions extension

Extension to validate Email To use: 'my@email.com'.isValidEmail;
no setter
isValidName bool

Available on String, provided by the StringExtensions extension

Extension to validate Name To use: 'vasyl mayovets'.isValidName;
no setter
isValidPhone bool

Available on String, provided by the StringExtensions extension

Extension to validate Phone number To use: '0980001000'.isValidPhone;
no setter
isValidQr bool

Available on String, provided by the StringExtensions extension

Extension to validate Name To use: 'vasyl mayovets'.isValidName;
no setter
isValidURL bool

Available on String, provided by the StringExtensions extension

Is valid URL
no setter
isValidYouTubeVideo bool

Available on String, provided by the StringExtensions extension

Extension to validate YouTube video URL
no setter
keywordsOnly List<String>

Available on String, provided by the StringExtensions extension

Get list of keywords from sentence
no setter
lowerCase String

Available on String, provided by the StringExtensions extension

no setter
onlyDigits int

Available on String, provided by the StringExtensions extension

Get only digits from toString() usefull for formated phone extract
no setter
paramCase String

Available on String, provided by the StringExtensions extension

no setter
parseEmailAndName Map<String, String>?

Available on String, provided by the StringExtensions extension

no setter
pascalCase String

Available on String, provided by the StringExtensions extension

no setter
pathCase String

Available on String, provided by the StringExtensions extension

no setter
sentenceCase String

Available on String, provided by the StringExtensions extension

no setter
snakeCase String

Available on String, provided by the StringExtensions extension

no setter
stripEmoji String

Available on String, provided by the StringExtensions extension

Strip all Emoji from String
no setter
stripTags String

Available on String, provided by the StringExtensions extension

Strip all tasks from String
no setter
titleCase String

Available on String, provided by the StringExtensions extension

no setter
toCodeStyle String

Available on String, provided by the StringExtensions extension

Convert to code style
no setter
toShortPhoneFormat int

Available on String, provided by the StringExtensions extension

Get only digits from toString() usefull for formated phone extract
no setter
translite String

Available on String, provided by the StringExtensions extension

Convert to translite
no setter
trimByTag String

Available on String, provided by the StringExtensions extension

Trim Octopoos tag from string
no setter
trimOct int

Available on String, provided by the StringExtensions extension

Remove first char from string list
no setter
upperCase String

Available on String, provided by the StringExtensions extension

no setter

Methods

anyChar(bool predicate(String element)) bool

Available on String, provided by the StringExtensions extension

Returns true if at least one element matches the given predicate. the predicate should have only one character
ensureMinLength({int minLength = 8}) String

Available on String, provided by the StringExtensions extension

Ensure mi lenght and generate rand chars
getFirstLetters(int limitTo) String

Available on String, provided by the StringExtensions extension

Get First Letters
getOnly(int num) String

Available on String, provided by the StringExtensions extension

ifEmpty(Function action) String

Available on String, provided by the StringExtensions extension

insert(int index, String str) String

Available on String, provided by the StringExtensions extension

Returns a new string in which a specified string is inserted at a specified index position in this instance.
limitFromEnd(int maxSize) String

Available on String, provided by the StringExtensions extension

Shrink a string to be no more than maxSize in length, extending from the end. For example, in a string with 10 charachters, a maxSize of 3 would return the last 3 charachters.
limitFromStart(int maxSize) String

Available on String, provided by the StringExtensions extension

Shrink a string to be no more than maxSize in length, extending from the start. For example, in a string with 10 charachters, a maxSize of 3 would return the first 3 charachters.
makeID({dynamic withTimestamp = false}) String

Available on String, provided by the StringExtensions extension

Replace part of string after the first occurrence of given delimiter with the replacement string. If the string does not contain the delimiter, returns defaultValue which defaults to the original string.
parseBool() bool

Available on String, provided by the StringExtensions extension

Extension to get boolean value from String
removeAllWhiteSpace() String

Available on String, provided by the StringExtensions extension

Returns a String without white space at all "hello world" // helloworld
replaceAfter(String delimiter, String replacement, [String defaultValue = '']) String

Available on String, provided by the StringExtensions extension

Replace part of string after the first occurrence of given delimiter with the replacement string. If the string does not contain the delimiter, returns defaultValue which defaults to the original string.
replaceBefore(String delimiter, String replacement, [String defaultValue = '']) String

Available on String, provided by the StringExtensions extension

Replace part of string before the first occurrence of given delimiter with the replacement string. If the string does not contain the delimiter, returns missingDelimiterValue which defaults to the original string.
splitByLength(int length) List<String>

Available on String, provided by the StringExtensions extension

Split string by char lenght
toCharArray() List<String>

Available on String, provided by the StringExtensions extension

Returns a list of chars from a String
toDouble() double

Available on String, provided by the StringExtensions extension

Parses the string as a double number and returns the result.
toDoubleOrNull() double?

Available on String, provided by the StringExtensions extension

Parses the string as an double or returns null if it is not a number.
toInt() int

Available on String, provided by the StringExtensions extension

Parses the string as an int number and returns the result.
toIntOrNull() int?

Available on String, provided by the StringExtensions extension

Parses the string as an int or returns null if it is not a number.
toUtf16() List<int>

Available on String, provided by the StringExtensions extension

trimFirst({String? char}) String

Available on String, provided by the StringExtensions extension

Remove first char @ from String
wordLimit(int wordCount) String

Available on String, provided by the StringExtensions extension

Get first N words