ColorUtils class

颜色相关操作工具类

Constructors

ColorUtils()

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

isLightColor(Color color) bool
判断颜色是否为亮色
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

colorToHex(Color? color) String
将Color对象转换为十六进制颜色字符串
hexToColor(String hex) Color?
将十六进制颜色字符串转换为Color对象
randomColor() Color
生成随机颜色