NiceNotificationItem constructor

const NiceNotificationItem({
  1. required String id,
  2. required String title,
  3. String? message,
  4. NiceNotificationType type = NiceNotificationType.info,
  5. DateTime? timestamp,
  6. String? actionLabel,
  7. VoidCallback? onAction,
  8. bool read = false,
  9. Map<String, dynamic>? data,
})

Implementation

const NiceNotificationItem({
  required this.id,
  required this.title,
  this.message,
  this.type = NiceNotificationType.info,
  this.timestamp,
  this.actionLabel,
  this.onAction,
  this.read = false,
  this.data,
});