SlideAnimation constructor

SlideAnimation({
  1. Key? key,
  2. required Duration duration,
  3. required Duration delay,
  4. required Widget child,
  5. required double begin,
  6. required double end,
  7. required OffsetBuilder offsetBuild,
  8. ValueSetter<AnimationController>? onComplete,
  9. double idleValue = 0,
})

Implementation

SlideAnimation({
  super.key,
  required super.duration,
  required super.delay,
  required super.child,
  required double begin,
  required double end,
  required OffsetBuilder offsetBuild,
  super.onComplete,
  super.idleValue = 0,
}) : super(
        builder: (context, value, child) => Transform.translate(
          offset: offsetBuild(context, value),
          child: child,
        ),
        tween: Tween<double>(begin: begin, end: end),
      );