SlidingAnimation constructor

const SlidingAnimation({
  1. Key? key,
  2. required Widget child,
  3. required Duration duration,
  4. bool repeat = true,
  5. Axis axis = Axis.horizontal,
})

Implementation

const SlidingAnimation({
  super.key,
  required this.child,
  required this.duration,
  // Default value for repeat is true.
  this.repeat = true,
  // Default value for axis is Axis.horizontal.
  this.axis = Axis.horizontal,
});