StringUtil class

字符串操作工具类

Constructors

StringUtil()

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
根据文本的字体和样式计算占用高度
convertJsonFormat(dynamic object, int deep, {bool isObject = false}) String
用于json的格式化打印 object 解析的对象 deep 递归的深度,用来获取缩进的空白长度 isObject 用来区分当前map或list是不是来自某个字段,则不用显示缩进。单纯的map或list需要添加缩进
getDeepSpace(int deep) String
用于json的格式化打印 - 获取缩进空白符