Headline constructor Null safety

Headline(
  1. DateTime date,
  2. String text,
  3. String link,
  4. String extract
)

Implementation

Headline(DateTime date, String text, String link, String extract) {
  this.date = date;
  this.text = text;
  this.link = link;
  this.extract = extract;
}