onTapNotification method

Future<void> onTapNotification(
  1. NotificationResponse? response
)

Implementation

Future<void> onTapNotification(NotificationResponse? response) async {
  if (response?.payload != null) {
    selectNotificationStream.add(response?.payload);

    _onTap!(jsonDecode(response!.payload!)["details"]);
  }
}