ImgCard constructor

const ImgCard({
  1. required String imgUrl,
  2. String? description,
  3. bool isFavorite(
    1. String
    )?,
  4. void toggleFavorite(
    1. String
    )?,
  5. Key? key,
})

Implementation

const ImgCard({
  required this.imgUrl,
  this.description,
  this.isFavorite,
  this.toggleFavorite,
  super.key,
});