addNotificationOpenAction static method

StreamSubscription addNotificationOpenAction(
  1. NotificationOpenAction action
)

Implementation

static StreamSubscription addNotificationOpenAction(
    NotificationOpenAction action) {
  return _onNotificationClicked.listen((ClickedNotificationWrapper clicked) {
    if (!clicked.handled) {
      final handled = action(clicked.clickedNotification);
      clicked.handled = handled;
    }
  });
}