StringUtils class
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
boundingTextSize(
String text, TextStyle style, {int maxLines = 2 ^ 31, double maxWidth = double.infinity}) → Size -
checkPhone(
String str) → bool - 大陆手机号码11位数,匹配格式:前三位固定格式+后8位任意数 此方法中前三位格式有: 13+任意数 * 15+除4的任意数 * 18+除1和4的任意数 * 17+除9的任意数 * 147
-
copy(
String? text) → void -
formatDigitPattern(
String text, {int digit = 4, String pattern = ' '}) → String - 每隔 x位 加 pattern
-
getRandom(
) → int -
hasDigit(
String input) → bool -
hideEmail(
String email, int num) → String -
hidePhone(
String phone, int num) → String -
isChinese(
String input) → bool -
isDigitAndPlus(
String? input) → bool -
isEmail(
String input) → bool -
isOnly(
String input) → bool
Constants
- BIG_CONTAIN_LETTER_REGEX → const String
- CHINESE_LETTER_DIGIT_REGEX → const String
- CHINESE_LETTER_REGEX → const String
- CHINESE_REGEX → const String
- CONTAIN_DIGIT_REGEX → const String
- CONTAIN_LETTER_REGEX → const String
- DIGIT_AND_PLUS_REGEX → const String
- DIGIT_REGEX → const String
- LETTER_DIGIT_REGEX → const String
- LETTER_REGEX → const String
- SMALL_CONTAIN_LETTER_REGEX → const String