NiceNotificationCenter constructor

const NiceNotificationCenter({
  1. Key? key,
  2. required List<NiceNotificationItem> notifications,
  3. void onDismiss(
    1. String id
    )?,
  4. void onNotificationTap(
    1. NiceNotificationItem notification
    )?,
  5. void onClearAll()?,
  6. NiceNotificationPosition position = NiceNotificationPosition.topRight,
  7. double maxWidth = 400,
  8. Duration autoHideDuration = const Duration(seconds: 5),
  9. bool showBadge = true,
  10. bool grouped = false,
})

Implementation

const NiceNotificationCenter({
  super.key,
  required this.notifications,
  this.onDismiss,
  this.onNotificationTap,
  this.onClearAll,
  this.position = NiceNotificationPosition.topRight,
  this.maxWidth = 400,
  this.autoHideDuration = const Duration(seconds: 5),
  this.showBadge = true,
  this.grouped = false,
});