AnimatedValueBuilder<T>.animation constructor

const AnimatedValueBuilder<T>.animation({
  1. Key? key,
  2. T? initialValue,
  3. required T value,
  4. required Duration duration,
  5. required AnimationBuilder<T> builder,
  6. void onEnd(
    1. T value
    )?,
  7. Curve curve = Curves.linear,
  8. T lerp(
    1. T a,
    2. T b,
    3. double t
    )?,
})

Implementation

const AnimatedValueBuilder.animation({
  super.key,
  this.initialValue,
  required this.value,
  required this.duration,
  required AnimationBuilder<T> builder,
  this.onEnd,
  this.curve = Curves.linear,
  this.lerp,
})  : builder = null,
      animationBuilder = builder,
      child = null,
      rawBuilder = null;