NotificationListenerModifier<T extends Notification> constructor

const NotificationListenerModifier<T extends Notification>({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
  4. NotificationListenerCallback<T>? onNotification,
})

Creates a widget that listens for notifications.

Implementation

const NotificationListenerModifier({
  super.key,
  super.child,
  super.modifierKey,
  this.onNotification,
});