StringExtensions extension

on

Properties

camelCase String
Camelcase string Example: your name => yourName
no setter
capitalize String
Capitalize each word inside string Example: your name => Your Name, your name => Your name
no setter
groupIntoWords List<String>
no setter
isBlank bool
no setter
isBool bool
Checks if string is boolean.
no setter
isCnpj bool
no setter
isCpf bool
no setter
isff FilesFormat
Sample
no setter
isNum bool
no setter
isPalindrom bool
Checks if string is Palindrom.
no setter
onlyfirstUppercase String
Uppercase first letter inside string and let the others lowercase Example: your name => Your name
no setter
regPattern RegPattern
no setter
removeAllSpace String
Remove all whitespace inside string Example: your name => yourname
no setter
trimAll String
String sample ='what is \n your name'; print(sample); \\ whatisyourname
no setter

Methods

createPath([Iterable? segments]) String
hasMatch(String pattern) bool
numericOnly({bool firstWordOnly = false}) String
Extract numeric value of string Example: OTP 12312 27/04/2020 => 1231227042020ß If firstword only is true, then the example return is "12312" (first found numeric word)
regMatch(RegPattern regPattern) bool
Sample
snakeCase([String separator = '_']) String?
snake_case
wText({Key? key, TextStyle? style}) Text