StringExtensions extension
String 字符串扩展
- on
Properties
- clearHtml → String
-
Available on String, provided by the StringExtensions extension
清除 html 标签no setter - toColor → Color
-
Available on String, provided by the StringExtensions extension
生成 Colorno setter - toMaterialColor → Color
-
Available on String, provided by the StringExtensions extension
生成 MaterialColorno setter
Methods
-
capitalize(
) → String -
Available on String, provided by the StringExtensions extension
每个单词都大写hello world
becomesHello World
. -
capitalizeFirst(
) → String -
Available on String, provided by the StringExtensions extension
首字母大写hello world
becomesHello world
. -
hasMatch(
String pattern) → bool -
Available on String, provided by the StringExtensions extension
正则检查匹配 -
isBool(
{bool caseSensitive = true}) → bool -
Available on String, provided by the StringExtensions extension
是否 bool -
isDouble(
) → bool -
Available on String, provided by the StringExtensions extension
是否 double -
isInt(
) → bool -
Available on String, provided by the StringExtensions extension
是否 int -
isNum(
) → bool -
Available on String, provided by the StringExtensions extension
是否数字 -
removeAllWhitespace(
) → String -
Available on String, provided by the StringExtensions extension
清除所有空格 -
toBool(
{bool caseSensitive = true}) → bool -
Available on String, provided by the StringExtensions extension
转 bool -
toDouble(
) → double -
Available on String, provided by the StringExtensions extension
转 double -
toInt(
) → int -
Available on String, provided by the StringExtensions extension
转 int -
toNum(
) → num -
Available on String, provided by the StringExtensions extension
转数字