map()
Returns a new MappedValue that transforms the resolved source value.
map(
fn: (
source: UIColor | Gradient | MappedValue,
) => UIColor | Gradient | MappedValue,
): MappedValue;
Parameters
- fn — A function that receives the resolved source and returns a new color or gradient.
Return value
A new MappedValue instance with lazy evaluation.
Related
class MappedValue static
A class that represents a derived color or gradient value.
