StringExtension extension

on

Properties

hideEmail String

Available on String, provided by the StringExtension extension

隐藏邮箱
no setter
hidePhoneNumber String

Available on String, provided by the StringExtension extension

隐藏手机号中间四位
no setter
isEmail bool

Available on String, provided by the StringExtension extension

判断字符串是否为邮箱
no setter
isEmptyOrNull bool

Available on String, provided by the StringExtension extension

判断字符串是否为空
no setter
isNotEmptyOrNull bool

Available on String, provided by the StringExtension extension

判断字符串是否不为空
no setter
isPhoneNumber bool

Available on String, provided by the StringExtension extension

判断字符串是否为手机号
no setter
isUrl bool

Available on String, provided by the StringExtension extension

判断字符串是否为URL
no setter

Methods

toBool() bool

Available on String, provided by the StringExtension extension

将字符串转换为bool
toDouble() double?

Available on String, provided by the StringExtension extension

将字符串转换为double
toInt() int?

Available on String, provided by the StringExtension extension

将字符串转换为int