KRCellSubcategory constructor

const KRCellSubcategory({
  1. Key? key,
  2. String imgURL = "http://via.placeholder.com/350x150",
  3. required String title,
  4. required String subtitle,
  5. required String caption,
  6. EdgeInsetsGeometry padding = const EdgeInsets.all(KRTheme.PADDING_NORMAL),
  7. int backgroundFavoriteColor = KRTheme.DEFAULT_PRIMARY_LIGHT_COLOR,
  8. int backgroundDiscountColor = KRTheme.DEFAULT_PRIMARY_COLOR,
  9. String? cartCountText,
  10. String? discountText,
  11. int textColor = KRTheme.DEFAULT_DARK_COLOR,
})

Implementation

const KRCellSubcategory({
  Key? key,
  this.imgURL = "http://via.placeholder.com/350x150",
  required this.title,
  required this.subtitle,
  required this.caption,
  this.padding = const EdgeInsets.all(KRTheme.PADDING_NORMAL),
  this.backgroundFavoriteColor = KRTheme.DEFAULT_PRIMARY_LIGHT_COLOR,
  this.backgroundDiscountColor = KRTheme.DEFAULT_PRIMARY_COLOR,
  this.cartCountText,
  this.discountText,
  this.textColor = KRTheme.DEFAULT_DARK_COLOR,
}) : super(key: key);