StringUtils class

String工具类

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

checkEmpty(List<String?>? str, List<String> msg, {dynamic fun(int)?}) bool
checkTimeT(String time) String
contain(String? content, String key) bool?
formartNum(num target, int postion, {bool isCrop = false}) String
target 要转换的数字 postion 要保留的位数 isCrop true 直接裁剪 false 四舍五入
getChartLabelName(String? name) String
getDateTimeByTimeStr(String? time) DateTime
getFileIcon(String? name) String
getFirstChart(String? name) String
getParamsByStr(String? result) Map<String, String>
getStringIndex(int name) String
getTimeStr(String? time, {int len = 0}) String
isEmpty(String? text) bool
isListEmpty(List? list) bool
isMobile(String input) bool
Return whether input matches regex of simple mobile.
isVerifyCode(String input) bool
matches(String regex, String input) bool
objToDouble(Object? obj) double
removeLastWrap(String? name) String?
textExceedMaxLines(String text, TextStyle textStyle, int maxLine, double maxWidth) bool