IndicatorModel.animation constructor
const
IndicatorModel.animation({})
Used for animated indicators
BannersCarousel(
banners: BannerImages.listBanners,
customizedIndicators: IndicatorModel.animation(width: 20, height: 5, spaceBetween: 2, widthAnimation: 50)),
Implementation
const IndicatorModel.animation({
required double width,
double? widthAnimation,
required double height,
double? heightAnimation,
required double spaceBetween,
double? spaceBetweenAnimation,
}) : _height = height,
_width = width,
_widthAnimation = widthAnimation ?? width + 20,
_heightAnimation = heightAnimation ?? height,
_paddingAnimation = spaceBetweenAnimation ?? spaceBetween + 3,
_padding = spaceBetween;