···29 final notifications = await apiService.getNotifications();
30 state = notifications;
31 } else {
32- // You may need to adjust this if your WS sends a list or other format
33 final notification = Notification.fromJson(data);
34 state = [...state, notification];
35 }
···29 final notifications = await apiService.getNotifications();
30 state = notifications;
31 } else {
032 final notification = Notification.fromJson(data);
33 state = [...state, notification];
34 }