StringUtils class

Constructors

StringUtils()

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