BannerCarousel.fullScreen constructor

const BannerCarousel.fullScreen({
  1. Key? key,
  2. List<BannerModel>? banners,
  3. double height = 150,
  4. double borderRadius = 0,
  5. double viewportFraction = 1.0,
  6. int initialPage = 0,
  7. Color? disableColor,
  8. ValueChanged<int>? onPageChanged,
  9. bool indicatorBottom = true,
  10. dynamic onTap(
    1. String id
    )?,
  11. bool showIndicator = true,
  12. Color? activeColor,
  13. bool animation = true,
  14. List<Widget>? customizedBanners,
  15. IndicatorModel customizedIndicators = _indicatorModel,
  16. PageController? pageController,
})
BannersCarousel.fullScreen(banners: BannerImages.listBanners),

Implementation

const BannerCarousel.fullScreen({
  Key? key,
  this.banners,
  this.height = 150,
  this.borderRadius = 0,
  this.viewportFraction = 1.0,
  this.initialPage = 0,
  this.disableColor,
  this.onPageChanged,
  this.indicatorBottom = true,
  this.onTap,
  this.showIndicator = true,
  this.activeColor,
  this.animation = true,
  this.customizedBanners,
  this.customizedIndicators = _indicatorModel,
  this.pageController,
})  : this.width = double.maxFinite,
      this.spaceBetween = 0.0,
      this.margin = EdgeInsets.zero,
      assert(banners != null || customizedBanners != null,
          'banners or customizedBanners need to be implemented'),
      assert(
          banners == null || customizedBanners == null,
          'Cannot provide both a banners and a customizedBanners\n'
          'Choose only one to implement'),
      super(key: key);