withTiming top-level constant
CallWith Function(double toValue, {Curve? curve, int? delay, int? duration, void onComplete()?})
const withTiming
Starts a Curve animation on the Tweenable to the toValue
Example
x = withTiming(double toValue, {
double toValue, {
int duration, // duration of the animation in milliseconds
Curve curve // default [Curves.easeIn],
int? delay,
void Function()? onComplete, // callback after the animation is complete
})
Implementation
const withTiming = _AnimationFunctions._withTiming;