IBanner constructor

IBanner(
  1. List<BannerData> dataPromotion, {
  2. Key? key,
  3. double width = 100,
  4. double height = 100,
  5. Color colorGrey = const Color.fromARGB(255, 180, 180, 180),
  6. Color colorActive = Colors.red,
  7. TextStyle style = const TextStyle(),
  8. required dynamic callback(
    1. String id,
    2. String heroId,
    3. String image
    ),
  9. int seconds = 3,
  10. Color colorProgressBar = Colors.black,
  11. double radius = 0,
  12. int shadow = 0,
})

Implementation

IBanner(this.dataPromotion, {Key? key, this.width = 100, this.height = 100, this.colorGrey = const Color.fromARGB(255, 180, 180, 180),
  this.colorActive = Colors.red, this.style = const TextStyle(),
  required this.callback, this.seconds = 3, this.colorProgressBar = Colors.black,
  this.radius = 0, this.shadow = 0}) : super(key: key);