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 IDno 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 Wordno setter - getFirstLetter → String
-
Available on String, provided by the StringExtensions extension
Get first letter from wordno setter - getFirstSlice → String
-
Available on String, provided by the StringExtensions extension
Get first Slice before spaceno 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 containsno 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
Returnstrue
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
Returnstrue
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 isnull
,empty
, or consists only ofwhite-space
characters.no setter - isUpperCase → bool
-
Available on String, provided by the StringExtensions extension
Returnstrue
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 URLno setter - isValidYouTubeVideo → bool
-
Available on String, provided by the StringExtensions extension
Extension to validate YouTube video URLno setter -
keywordsOnly
→ List<
String> -
Available on String, provided by the StringExtensions extension
Get list of keywords from sentenceno 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 extractno 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 Stringno setter - stripTags → String
-
Available on String, provided by the StringExtensions extension
Strip all tasks from Stringno 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 styleno setter - toShortPhoneFormat → int
-
Available on String, provided by the StringExtensions extension
Get only digits from toString() usefull for formated phone extractno setter - translite → String
-
Available on String, provided by the StringExtensions extension
Convert to transliteno setter - trimByTag → String
-
Available on String, provided by the StringExtensions extension
Trim Octopoos tag from stringno setter - trimOct → int
-
Available on String, provided by the StringExtensions extension
Remove first char from string listno 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
Returnstrue
if at least one element matches the givenpredicate
. thepredicate
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 thanmaxSize
in length, extending from the end. For example, in a string with 10 charachters, amaxSize
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 thanmaxSize
in length, extending from the start. For example, in a string with 10 charachters, amaxSize
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 thereplacement
string. If the string does not contain the delimiter, returnsdefaultValue
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 thereplacement
string. If the string does not contain the delimiter, returnsdefaultValue
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 thereplacement
string. If the string does not contain the delimiter, returnsmissingDelimiterValue
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 returnsnull
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 returnsnull
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