AnimatedLoadingBar constructor

const AnimatedLoadingBar({
  1. Key? key,
  2. double height = 10.0,
  3. required List<Color> colors,
  4. Duration duration = const Duration(seconds: 2),
})

Creates an AnimatedLoadingBar.

The colors parameter must not be null and should contain at least two colors. The height parameter specifies the height of the loading bar. The duration parameter specifies the duration of the color animation.

Implementation

const AnimatedLoadingBar({
  Key? key,
  this.height = 10.0,
  required this.colors,
  this.duration = const Duration(seconds: 2),
}) : super(key: key);