CustomAdModel constructor

const CustomAdModel({
  1. required String title,
  2. required String description,
  3. String? id,
  4. String? imageUrl,
  5. String? link,
  6. String callToAction = 'Learn More',
  7. String advertiser = 'Sponsored',
  8. double? rating = 4.9,
  9. VoidCallback? onTap,
  10. Map<String, dynamic>? extras,
})

Implementation

const CustomAdModel({
  required this.title,
  required this.description,
  this.id,
  this.imageUrl,
  this.link,
  this.callToAction = 'Learn More',
  this.advertiser = 'Sponsored',
  this.rating = 4.9,
  this.onTap,
  this.extras,
});