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.
Constructors
- ColorToken(String name)
-
const
Properties
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