IndicatorModel.animation constructor

const IndicatorModel.animation({
  1. required double width,
  2. double? widthAnimation,
  3. required double height,
  4. double? heightAnimation,
  5. required double spaceBetween,
  6. double? spaceBetweenAnimation,
})

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;