get method
Returns the ARGB representation of an HCT color at the given tone
.
If the palette is constructed from a list of colors (i.e. using fromList), the color provided at construction is returned if possible; otherwise the result is generated from the deduced hue and chroma.
If the palette is constructed from a hue and chroma (i.e. using of or fromHct), the result is generated from the given hue and chroma.
Implementation
int get(int tone) {
return _cache.putIfAbsent(
tone,
() => Hct.from(hue, chroma, tone.toDouble()).toInt(),
);
}