TextUtil class
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
-
clearErrorMsg(
String message) → String - 清除字符串中的错误字符信息
-
fillText(
{required String text, int len = 16, FillTextAlign align = FillTextAlign.right}) → String - 填充字符串,当字符传递小于给定的长度则以空白符填充,如果超出则截取
-
getCodeAndName(
String? code, String? name, {String textNull = ''}) → String - 获取已拼接的code和name
-
getProductUnit(
String? unit, {String textNull = '', bool brackets = false}) → String - 获取物料单位
-
getSameTextInTwoStr(
String str1, String str2) → String - 获取两个字符之前的相同字符,从头开始计算
-
scannerTrim(
String val) → String - 扫码字符处理(空白符、首位?)
-
trim(
String text) → String - 去除前后空白符
-
valueTextedOrNull(
dynamic value) → String?