NCard constructor

const NCard({
  1. Key? key,
  2. required Image image,
  3. String? title,
  4. String? desc,
  5. String? tag,
  6. int? num,
  7. double? price,
  8. double? originPrice,
  9. bool centered = false,
  10. String currency = "¥",
  11. dynamic onClick()?,
  12. Widget? customTitle,
  13. Widget? customDesc,
  14. Widget? customNum,
  15. Widget? customPrice,
  16. Widget? customOriginPrice,
  17. Widget? customThumb,
  18. Widget? customTag,
  19. Widget? customTags,
  20. Widget? customFooter,
})

Implementation

const NCard(
    {Key? key,
    required this.image,
    this.title,
    this.desc,
    this.tag,
    this.num,
    this.price,
    this.originPrice,
    this.centered: false,
    this.currency: "¥",
    this.onClick,
    this.customTitle,
    this.customDesc,
    this.customNum,
    this.customPrice,
    this.customOriginPrice,
    this.customThumb,
    this.customTag,
    this.customTags,
    this.customFooter})
    : super(key: key);