SmartStyleParser class

智能样式解析器

开发模式(kDebugMode=true):每次重新解析,支持热重载 生产模式(kDebugMode=false):使用缓存,优化性能

Constructors

SmartStyleParser.new()

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

addColorSystem(String colorName, Map<String, Color> colorShades) → void
添加单个色系
clearCache() → void
清空缓存(用于开发时手动清理)
getCustomColor(String colorName) Color?
获取自定义颜色
initialize({Map<String, Map<String, Color>>? customColors}) → void
初始化方法,允许用户添加自定义色系
parseClassName(String className, String componentType, BuildContext context) Map<String, dynamic>
Parse className string and return style properties.