toGenericExpression method
Converts the interpolation method to a generic expression.
Implementation
List<Object> toGenericExpression() {
switch (this) {
case HeatmapInterpolation.linear:
return ["linear"];
case HeatmapInterpolation.exponential:
return ["exponential", 2];
case HeatmapInterpolation.cubicBezier:
return ["cubic-bezier", 0.25, 0.1, 0.25, 1.0];
}
}