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

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

fromHex(String hexString) Color
Converts a hex string (e.g., "#FFFFFF" or "FFFFFF") to a Color. Optionally supports alpha values (e.g., "#80FFFFFF" or "80FFFFFF").
random() Color
Returns a random Color.
toHex(Color color, {bool includeAlpha = true}) String
Converts a Color to a hex string (e.g., "#FFFFFF"). Includes alpha by default; pass includeAlpha: false to omit it.