SingleAnimationWrapper<T> constructor

const SingleAnimationWrapper<T>({
  1. Key? key,
  2. required Widget child(
    1. AnimationController,
    2. T
    ),
  3. Duration duration = const Duration(milliseconds: 300),
  4. Duration delay = const Duration(),
  5. AnimationController? controller,
  6. required Animation<T> animation(
    1. AnimationController
    ),
  7. bool startAnimation = true,
  8. bool loop = false,
  9. double viewPort = 0.1,
})

Implementation

const SingleAnimationWrapper(
    {Key? key,
    required this.child,
    this.duration = const Duration(milliseconds: 300),
    this.delay = const Duration(),
    this.controller,
    required this.animation,
    this.startAnimation = true,
    this.loop = false,
    this.viewPort = 0.1})
    : super(key: key);