Article constructor

Article({
  1. required Source source,
  2. required String? author,
  3. required String content,
  4. required String description,
  5. required DateTime publishedAt,
  6. required String title,
  7. required String url,
  8. required String urlToImage,
})

Implementation

Article({
  required this.source,
  required this.author,
  required this.content,
  required this.description,
  required this.publishedAt,
  required this.title,
  required this.url,
  required this.urlToImage,
});