setOnNotificationClick method

dynamic setOnNotificationClick(
  1. Function onNotificationClick
)

Gets called when user clicks on notification

Implementation

setOnNotificationClick(Function onNotificationClick) async {
  await _notificationsPlugin.initialize(initializationSettings,
      onDidReceiveNotificationResponse: (payload) async {
    await onNotificationClick(payload);
  });
}