YmStringUtil class

字符串工具类

Constructors

YmStringUtil()

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

formatMoney(double money, {dynamic separate = 3}) String
每3位加逗号
formatStarName(String name) String
将姓名变为*号
intEmpty(int? value) bool
int为空
intNotEmpty(int? value) bool
int不为空
isMobile(String mobile) → dynamic
判断是否为手机号
listEmpty(List? list) bool
List为空
listNotEmpty(List? list) bool
List不为空
mapEmpty(Map? value) bool
Map为空
mapNotEmpty(Map? value) bool
Map不为空
strEmpty(String? value) bool
字符串为空
strNotEmpty(String? value) bool
字符串不为空
toStringMoney(double money) String
去掉金额的.00
verifyIdCard(String idCard) String
校验身份证合法性