DoubleAnimationWrapper<T> constructor

const DoubleAnimationWrapper<T>({
  1. Key? key,
  2. required Duration duration,
  3. bool startAnimation = true,
  4. Duration delay = Duration.zero,
  5. AnimationController? controller,
  6. required Animation<T> firstAnimation(
    1. AnimationController controller
    ),
  7. required Animation<T> secondAnimation(
    1. AnimationController controller
    ),
  8. double viewPort = 0.1,
  9. required Widget child(
    1. AnimationController controller,
    2. T first,
    3. T second
    ),
})

Implementation

const DoubleAnimationWrapper(
    {Key? key,
    required this.duration,
    this.startAnimation = true,
    this.delay = Duration.zero,
    this.controller,
    required this.firstAnimation,
    required this.secondAnimation,
    this.viewPort = 0.1,
    required this.child})
    : super(key: key);