ColorToken class

A token representing a color value in the Mix theme.

The color value can be resolved statically or dynamically.

To resolve the color value statically, pass a Color value to the constructor.

Inheritance
Annotations

Constructors

ColorToken(String name)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

call() ColorRef
Calls the ColorToken to create a ColorRef instance.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(BuildContext context) Color
Resolves the color value based on the current BuildContext.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited