NiceNotificationCenter constructor

const NiceNotificationCenter({
  1. Key? key,
  2. required List<NiceNotification> notifications,
  3. String title = 'Notifications',
  4. void onNotificationTap(
    1. NiceNotification n
    )?,
  5. VoidCallback? onMarkAllRead,
  6. VoidCallback? onClear,
  7. String emptyMessage = 'No notifications',
  8. double maxHeight = 400,
})

Implementation

const NiceNotificationCenter({
  super.key,
  required this.notifications,
  this.title = 'Notifications',
  this.onNotificationTap,
  this.onMarkAllRead,
  this.onClear,
  this.emptyMessage = 'No notifications',
  this.maxHeight = 400,
});