Documentation

class MappedValue

A class that represents a derived color or gradient value.

class MappedValue;

Notes

Examples

UIColor.mappedValue("background", bg =>
    UIColor.isBrightColor(bg as UIColor)
        ? UI.colors.white
        : UIColor.linearGradient(180, darkGray, black)
)

Constructor

Instance members

Related