fxRendered method
The composed value the renderer should draw: authored base folded with every contribution through the derived operator table — opacity and scale multiply, translations and rotation add, everything else replaces in stack order.
Implementation
Object fxRendered(String prop) {
var v = _fxBase(prop);
for (var entry in fx.entries) {
if (entry.key.$2 != prop) continue;
v = switch (prop) {
'opacity' || 'scale' => (v as double) * (entry.value as double),
'translateX' ||
'translateY' ||
'rotate' => (v as double) + (entry.value as double),
_ => entry.value,
};
}
return v;
}