StringExtension extension

on

Properties

enumValue String

Available on String?, provided by the StringExtension extension

获取枚举字符串
no setter
isAlpha bool

Available on String?, provided by the StringExtension extension

Check weather String is alpha or not
no setter
isApk bool

Available on String?, provided by the StringExtension extension

Document regex
no setter
isAudio bool

Available on String?, provided by the StringExtension extension

Audio regex
no setter
isDigit bool

Available on String?, provided by the StringExtension extension

Return true if given String is Digit
no setter
isDoc bool

Available on String?, provided by the StringExtension extension

Document regex
no setter
isExcel bool

Available on String?, provided by the StringExtension extension

Excel regex
no setter
isHtml bool

Available on String?, provided by the StringExtension extension

HTML regex
no setter
isImage bool

Available on String?, provided by the StringExtension extension

Image regex
no setter
isNotNullOrEmpty bool

Available on String?, provided by the StringExtension extension

no setter
isNull bool

Available on String?, provided by the StringExtension extension

no setter
isNullOrEmpty bool

Available on String?, provided by the StringExtension extension

no setter
isPdf bool

Available on String?, provided by the StringExtension extension

PDF regex
no setter
isPPT bool

Available on String?, provided by the StringExtension extension

PPT regex
no setter
isTxt bool

Available on String?, provided by the StringExtension extension

Txt regex
no setter
isVideo bool

Available on String?, provided by the StringExtension extension

Video regex
no setter
renderHtml String

Available on String?, provided by the StringExtension extension

Render a HTML String
no setter
reverse String

Available on String?, provided by the StringExtension extension

It reverses the String
no setter

Methods

capitalizeEachWord() String

Available on String?, provided by the StringExtension extension

This function returns given string with each word capital
capitalizeFirstLetter() String

Available on String?, provided by the StringExtension extension

Capitalize given String
countWords() int

Available on String?, provided by the StringExtension extension

Return number of words ina given String
removeAllWhiteSpace() String

Available on String?, provided by the StringExtension extension

Removes white space from given String
thousandsSeparator({String separator = ','}) String

Available on String?, provided by the StringExtension extension

for ex. add comma in price
toDouble({double defaultValue = 0.0}) double

Available on String?, provided by the StringExtension extension

Return double value of given string
toInt({int defaultValue = 0}) int

Available on String?, provided by the StringExtension extension

Return int value of given string
toList() List<String>

Available on String?, provided by the StringExtension extension

toSlug({String delimiter = '_'}) String

Available on String?, provided by the StringExtension extension

Generate slug of a given String
validate([String defaultValue = '']) String

Available on String?, provided by the StringExtension extension

Check null string, return given value if null
validateEmail() bool

Available on String?, provided by the StringExtension extension

Check email validation
validateEmailEnhanced() bool

Available on String?, provided by the StringExtension extension

Check email validation
validatePhoneCN() bool

Available on String?, provided by the StringExtension extension

Check phone validation
validateURL() bool

Available on String?, provided by the StringExtension extension

Check URL validation