NotificationCenter constructor

const NotificationCenter({
  1. Key? key,
  2. required Widget child,
  3. int maxVisible = 5,
  4. NotificationPosition position = NotificationPosition.topRight,
  5. Duration? autoDismissDuration = const Duration(seconds: 4),
  6. void onNotificationTap(
    1. Notification notification
    )?,
})

Implementation

const NotificationCenter({
  super.key,
  required this.child,
  this.maxVisible = 5,
  this.position = NotificationPosition.topRight,
  this.autoDismissDuration = const Duration(seconds: 4),
  this.onNotificationTap,
});