AnimatedValueBuilder<T>.animation constructor
const
AnimatedValueBuilder<T>.animation ({})
Implementation
const AnimatedValueBuilder.animation({
super.key,
this.initialValue,
required this.value,
this.duration,
this.durationBuilder,
required AnimationBuilder<T> builder,
this.onEnd,
this.curve = Curves.linear,
this.lerp,
}) : builder = null,
animationBuilder = builder,
child = null,
assert(duration != null || durationBuilder != null,
'You must provide a duration or a durationBuilder.');