notifications method

NotificationsBundle notifications({
  1. String category = "",
  2. String categorydetail = "",
  3. List<Notifications>? cachedNotificationList,
  4. dynamic onNotificationUpdated(
    1. List<Notifications> updatedNotifications
    )?,
  5. dynamic onTap(
    1. String category,
    2. String categorydetail,
    3. int categorydetailID
    )?,
  6. required dynamic profileFunction(
    1. int userID,
    2. String username
    ),
})

Implementation

NotificationsBundle notifications({
  String category = "",
  String categorydetail = "",
  List<Notifications>? cachedNotificationList,
  Function(List<Notifications> updatedNotifications)? onNotificationUpdated,
  Function(String category, String categorydetail, int categorydetailID)?
      onTap,
  required Function(int userID, String username) profileFunction,
}) {
  return widgetNotificationsAll(
    service,
    profileFunction: profileFunction,
    cachedNotificationList: cachedNotificationList,
    category: category,
    categorydetail: categorydetail,
    onNotificationUpdated: onNotificationUpdated,
    onTap: onTap,
  );
}