onNotification method

dynamic onNotification(
  1. bool onNotification(
    1. Notification
    )?
)

Implementation

onNotification(bool Function(Notification)? onNotification) {
  _add(
    (w) => NotificationListener(
      child: w,
      onNotification: onNotification,
    ),
  );
}