StringExtension extension
- on
Properties
- count → int
-
Available on String?, provided by the StringExtension extension
统计字符串长度no setter -
hasAsset
→ Future<
bool> -
Available on String?, provided by the StringExtension extension
是否包含asset文件no setter - isChineseCharacter → bool
-
Available on String?, provided by the StringExtension extension
是否汉字判断no setter - isEmail → bool
-
Available on String?, provided by the StringExtension extension
验证是否email格式no setter - isEmptyString → bool
-
Available on String?, provided by the StringExtension extension
no setter - isMobile → bool
-
Available on String?, provided by the StringExtension extension
验证手机号码格式no setter - isNotEmptyString → bool
-
Available on String?, provided by the StringExtension extension
no setter - toInt → int
-
Available on String?, provided by the StringExtension extension
no setter - toLocalTime → DateTime
-
Available on String?, provided by the StringExtension extension
转成当地时间no setter - toNumDouble → double
-
Available on String?, provided by the StringExtension extension
no setter - withoutExtension → String
-
Available on String?, provided by the StringExtension extension
返回排除后缀名称no setter
Methods
-
ellipsize(
int length, String endChars, bool isAccurate) → String -
Available on String?, provided by the StringExtension extension
截断字符 text处理文体length
最大长度(以字符计)endChars
末尾显示字符isAccurate
是否精确统计 -
format(
List< String> args) → String -
Available on String?, provided by the StringExtension extension
-
isContainsStartsWith(
List< String> params) → bool -
Available on String?, provided by the StringExtension extension
字符串开始是否包含特定字符params
待比较字符 -
isContainsSub(
List< String> params) → bool -
Available on String?, provided by the StringExtension extension
字符串是否包含特定字符params
待比较字符数组 -
isInEquals(
List< String> compareValues) → bool -
Available on String?, provided by the StringExtension extension
判断对应的值是否与其中被比较的值相等compareValues
被比较值 -
substringByStr(
String start, String end) → String -
Available on String?, provided by the StringExtension extension
截取2个字符串之间的字符串 -
verifyLength(
int min, int max) → bool -
Available on String?, provided by the StringExtension extension
验证字符串长度是否在范围内