AnimatedLoadingBar constructor
const
AnimatedLoadingBar({})
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);