NiceNotificationCenter constructor
const
NiceNotificationCenter({
- Key? key,
- required List<
NiceNotificationItem> notifications, - void onDismiss(
- String id
- void onNotificationTap(
- NiceNotificationItem notification
- void onClearAll()?,
- NiceNotificationPosition position = NiceNotificationPosition.topRight,
- double maxWidth = 400,
- Duration autoHideDuration = const Duration(seconds: 5),
- bool showBadge = true,
- 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,
});