AnimatedValueBuilder<T> constructor

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

Implementation

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