PhoenixBanner constructor

const PhoenixBanner({
  1. Key? key,
  2. required List<String> listSlider,
  3. int? carouselDurationMs = 3000,
  4. void onEvent(
    1. GestureEvent event,
    2. int index
    )?,
  5. Color? activeColour,
  6. Color? inActiveColour,
  7. double? bannerHeight = 170.0,
  8. double? viewportFraction = 0.9,
  9. BoxFit? fit = BoxFit.cover,
  10. IndicatorPosition? indicatorPosition = IndicatorPosition.bottom,
  11. Widget placeholderBuilder(
    1. BuildContext context,
    2. String url
    )?,
  12. String transformImageUrl(
    1. String url
    )?,
})

Implementation

const PhoenixBanner({
  Key? key,
  required this.listSlider,
  this.carouselDurationMs = 3000,
  this.onEvent,
  this.activeColour,
  this.inActiveColour,
  this.bannerHeight = 170.0,
  this.viewportFraction = 0.9,
  this.fit = BoxFit.cover,
  this.indicatorPosition = IndicatorPosition.bottom,
  this.placeholderBuilder,
  this.transformImageUrl,
}) : super(key: key);