setTweenProp method
(Internal usage)
Overrides to know which properties will change. Sets the tween property for a PropTween.
This method sets the "to" value for the corresponding GTweenLerpProp
object in the _lerps
map using the key from the given tweenProp
.
If the key does not exist in _lerps
, the method returns without
making any changes.
The "to" value of the GTweenLerpProp object is set to the "cObj" value
of the given tweenProp
, and the "c" value of tweenProp
is set to 1.0.
Implementation
void setTweenProp(PropTween tweenProp) {
final key = '${tweenProp.p}';
if (!_lerps.containsKey(key)) {
return;
}
final lerpObj = _lerps[key]!;
lerpObj.to = tweenProp.cObj;
tweenProp.c = 1.0;
}