NotificationModel constructor

const NotificationModel({
  1. required int id,
  2. required String title,
  3. String? description,
  4. required String date,
  5. String? file,
})

Creates a new instance of the NotificationModel class.

The id, title, description, date, and file parameters are required.

Implementation

const NotificationModel({
  required this.id,
  required this.title,
  this.description,
  required this.date,
  this.file,
});