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 notno setter - isApk → bool
-
Available on String?, provided by the StringExtension extension
Document regexno setter - isAudio → bool
-
Available on String?, provided by the StringExtension extension
Audio regexno setter - isDigit → bool
-
Available on String?, provided by the StringExtension extension
Return true if given String is Digitno setter - isDoc → bool
-
Available on String?, provided by the StringExtension extension
Document regexno setter - isExcel → bool
-
Available on String?, provided by the StringExtension extension
Excel regexno setter - isHtml → bool
-
Available on String?, provided by the StringExtension extension
HTML regexno setter - isImage → bool
-
Available on String?, provided by the StringExtension extension
Image regexno 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 regexno setter - isPPT → bool
-
Available on String?, provided by the StringExtension extension
PPT regexno setter - isTxt → bool
-
Available on String?, provided by the StringExtension extension
Txt regexno setter - isVideo → bool
-
Available on String?, provided by the StringExtension extension
Video regexno setter - renderHtml → String
-
Available on String?, provided by the StringExtension extension
Render a HTML Stringno setter - reverse → String
-
Available on String?, provided by the StringExtension extension
It reverses the Stringno 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