StringUtilsExtension extension

on

Properties

count int

Available on String?, provided by the StringUtilsExtension extension

统计字符串长度
no setter
hasAsset Future<bool>

Available on String?, provided by the StringUtilsExtension extension

是否包含asset文件
no setter
isChineseCharacter bool

Available on String?, provided by the StringUtilsExtension extension

是否汉字判断
no setter
isEmail bool

Available on String?, provided by the StringUtilsExtension extension

验证是否email格式
no setter
isEmptyString bool

Available on String?, provided by the StringUtilsExtension extension

no setter
isMobile bool

Available on String?, provided by the StringUtilsExtension extension

验证手机号码格式
no setter
isNotEmptyString bool

Available on String?, provided by the StringUtilsExtension extension

no setter
toInt int

Available on String?, provided by the StringUtilsExtension extension

no setter
toLocalTime DateTime

Available on String?, provided by the StringUtilsExtension extension

转成当地时间
no setter
toNumDouble double

Available on String?, provided by the StringUtilsExtension extension

no setter
withoutExtension String

Available on String?, provided by the StringUtilsExtension extension

返回排除后缀名称
no setter

Methods

ellipsize(int length, String endChars, bool isAccurate) String

Available on String?, provided by the StringUtilsExtension extension

截断字符 text处理文体 length最大长度(以字符计) endChars末尾显示字符 isAccurate是否精确统计
format(List<String> args) String

Available on String?, provided by the StringUtilsExtension extension

isContainsStartsWith(List<String> params) bool

Available on String?, provided by the StringUtilsExtension extension

字符串开始是否包含特定字符 params待比较字符
isContainsSub(List<String> params) bool

Available on String?, provided by the StringUtilsExtension extension

字符串是否包含特定字符 params待比较字符数组
isInEquals(List<String> compareValues) bool

Available on String?, provided by the StringUtilsExtension extension

判断对应的值是否与其中被比较的值相等 compareValues 被比较值
substringByStr(String start, String end) String

Available on String?, provided by the StringUtilsExtension extension

截取2个字符串之间的字符串
verifyLength(int min, int max) bool

Available on String?, provided by the StringUtilsExtension extension

验证字符串长度是否在范围内