NiceNotification constructor

const NiceNotification({
  1. required String id,
  2. required String title,
  3. String? body,
  4. NiceNotificationType type = NiceNotificationType.info,
  5. IconData? icon,
  6. required DateTime timestamp,
  7. bool isRead = false,
  8. String? actionUrl,
  9. Map<String, dynamic>? data,
})

Implementation

const NiceNotification({
  required this.id,
  required this.title,
  this.body,
  this.type = NiceNotificationType.info,
  this.icon,
  required this.timestamp,
  this.isRead = false,
  this.actionUrl,
  this.data,
});