Preference constructor Null safety

Preference(
  1. {Map<String, dynamic>? healthDoubtNotification,
  2. Map<String, dynamic>? oddActionNotification,
  3. Map<String, dynamic>? needCheckNotification,
  4. Map<String, dynamic>? qnaNotification,
  5. Farm? farm}
)

Implementation

Preference({
  this.healthDoubtNotification,
  this.oddActionNotification,
  this.needCheckNotification,
  this.qnaNotification,
  this.farm,
});