ConvertUtil class

将标签属性转为对应的 style

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

generateColorByString(String hexColor, {Color defaultColor = const Color(0xffffffff)}) Color?
将标签 color 转为 颜色
generateFontSize(String size) double
将标签字体大小转为合适大小的字体
generateFontWidgetByString(String fontWeight) FontWeight
将标签字体转为合适的字体