StringExtensions extension

on

Properties

authority String

Available on String, provided by the StringExtensions extension

获取Uri中的authority(如 http://www.abcd.com:8080 中的 www.abcd.com:8080)
no setter
bytes List<int>

Available on String, provided by the StringExtensions extension

no setter
decodeBase64 String

Available on String, provided by the StringExtensions extension

Base64解码
no setter
encodedBase64 String

Available on String, provided by the StringExtensions extension

Base64编码
no setter
fragment String

Available on String, provided by the StringExtensions extension

获取Uri中的fragment 如果该字符串不是Url 将抛出 FormatException
no setter
hasCapitalLetter bool

Available on String, provided by the StringExtensions extension

字符串是否包含最少一个大写字母
no setter
host String

Available on String, provided by the StringExtensions extension

获取Uri中的host 如果该字符串不是Url 将抛出 FormatException
no setter
isAbsolute bool

Available on String, provided by the StringExtensions extension

是否是绝对路径
no setter
isAlphabetOnly bool

Available on String, provided by the StringExtensions extension

字符串中是否只包含字母
no setter
isAPK bool

Available on String, provided by the StringExtensions extension

文件是否是APK
no setter
isAudio bool

Available on String, provided by the StringExtensions extension

文件是否是音频
no setter
isBinary bool

Available on String, provided by the StringExtensions extension

检验字符串是否是二级制
no setter
isBool bool

Available on String, provided by the StringExtensions extension

是否是bool值
no setter
isChm bool

Available on String, provided by the StringExtensions extension

文件是否是Chm
no setter
isEmail bool

Available on String, provided by the StringExtensions extension

检验字符串是否是邮箱
no setter
isExcel bool

Available on String, provided by the StringExtensions extension

文件是否是Excel
no setter
isHexadecimal bool

Available on String, provided by the StringExtensions extension

检验字符串是否是表示颜色的字符串
no setter
isHTML bool

Available on String, provided by the StringExtensions extension

文件是否是HTML
no setter
isImage bool

Available on String, provided by the StringExtensions extension

文件是否是图片
no setter
isIPv4 bool

Available on String, provided by the StringExtensions extension

检验字符串是否是IPV4
no setter
isIPv6 bool

Available on String, provided by the StringExtensions extension

检验字符串是否是IPV6
no setter
isMD5 bool

Available on String, provided by the StringExtensions extension

检验字符串是否是MD5
no setter
isNum bool

Available on String, provided by the StringExtensions extension

判断字符串是否为数字(int,double)
no setter
isNumericOnly bool

Available on String, provided by the StringExtensions extension

字符串中是否只包含数字
no setter
isPDF bool

Available on String, provided by the StringExtensions extension

文件是否是PDF
no setter
isPhoneNumber bool

Available on String, provided by the StringExtensions extension

检验字符串是否是手机号
no setter
isPPT bool

Available on String, provided by the StringExtensions extension

文件是否是PPT
no setter
isSHA1 bool

Available on String, provided by the StringExtensions extension

检验字符串是否是SHA1编码字符
no setter
isSHA256 bool

Available on String, provided by the StringExtensions extension

检验字符串是否是SHA256编码字符
no setter
isTxt bool

Available on String, provided by the StringExtensions extension

文件是否是Txt
no setter
isVector bool

Available on String, provided by the StringExtensions extension

文件是否是Vector
no setter
isVideo bool

Available on String, provided by the StringExtensions extension

文件是否是视频
no setter
isWord bool

Available on String, provided by the StringExtensions extension

文件是否是Word
no setter
jsonList List

Available on String, provided by the StringExtensions extension

将字符串转为数组
no setter
jsonMap Map<String, dynamic>

Available on String, provided by the StringExtensions extension

将字符串转为Map
no setter
path String

Available on String, provided by the StringExtensions extension

获取Uri中的path 如果该字符串不是Url 将抛出 FormatException
no setter
pathSegments List<String>

Available on String, provided by the StringExtensions extension

获取Uri中的pathSegments 如果该字符串不是Url 将抛出 FormatException
no setter
port int

Available on String, provided by the StringExtensions extension

获取Uri中的port 如果该字符串不是Url 将抛出 FormatException
no setter
query String

Available on String, provided by the StringExtensions extension

获取Uri中的query 如果该字符串不是Url 将抛出 FormatException
no setter
queryParameters Map<String, String>

Available on String, provided by the StringExtensions extension

获取Uri中的queryParameters 如果该字符串不是Url 将抛出 FormatException
no setter
queryParametersAll Map<String, List<String>>

Available on String, provided by the StringExtensions extension

获取Uri中的queryParametersAll 如果该字符串不是Url 将抛出 FormatException
no setter
removeWhiteSpace String

Available on String, provided by the StringExtensions extension

从提供的字符串中删除所有空格。
no setter
scheme String

Available on String, provided by the StringExtensions extension

获取Uri中的scheme(如 http)
no setter
toDouble double

Available on String, provided by the StringExtensions extension

将字符串转为double
no setter
toInt int

Available on String, provided by the StringExtensions extension

将字符串转为int
no setter
toUri Uri?

Available on String, provided by the StringExtensions extension

将字符串转为Uri
no setter
userInfo String

Available on String, provided by the StringExtensions extension

获取Uri中的authority中的userInfo (如 http://user:password@host:80/path 中的 user:password)
no setter