@@ -13,6 +13,7 @@ class HomeScreenState extends Equatable {
13
13
final List <FeedsContentsModel > rssFeedsContentsList;
14
14
String upSpeed;
15
15
String downSpeed;
16
+ final Map <String , bool > notificationCancel;
16
17
17
18
HomeScreenState ({
18
19
required this .torrentList,
@@ -25,6 +26,7 @@ class HomeScreenState extends Equatable {
25
26
required this .rssFeedsContentsList,
26
27
required this .upSpeed,
27
28
required this .downSpeed,
29
+ required this .notificationCancel,
28
30
});
29
31
30
32
HomeScreenState copyWith ({
@@ -38,19 +40,20 @@ class HomeScreenState extends Equatable {
38
40
List <FeedsContentsModel >? rssFeedsContentsList,
39
41
String ? upSpeed,
40
42
String ? downSpeed,
43
+ Map <String , bool >? notificationCancel,
41
44
}) {
42
45
return HomeScreenState (
43
- torrentList: torrentList ?? this .torrentList,
44
- torrentListJson: torrentListJson ?? this .torrentListJson,
45
- unreadNotifications: unreadNotifications ?? this .unreadNotifications,
46
- notificationModel: notificationModel ?? this .notificationModel,
47
- rssFeedsListJson: rssFeedsListJson ?? this .rssFeedsListJson,
48
- rssFeedsList: rssFeedsList ?? this .rssFeedsList,
49
- rssRulesList: rssRulesList ?? this .rssRulesList,
50
- rssFeedsContentsList: rssFeedsContentsList ?? this .rssFeedsContentsList,
51
- upSpeed: upSpeed ?? this .upSpeed,
52
- downSpeed: downSpeed ?? this .downSpeed,
53
- );
46
+ torrentList: torrentList ?? this .torrentList,
47
+ torrentListJson: torrentListJson ?? this .torrentListJson,
48
+ unreadNotifications: unreadNotifications ?? this .unreadNotifications,
49
+ notificationModel: notificationModel ?? this .notificationModel,
50
+ rssFeedsListJson: rssFeedsListJson ?? this .rssFeedsListJson,
51
+ rssFeedsList: rssFeedsList ?? this .rssFeedsList,
52
+ rssRulesList: rssRulesList ?? this .rssRulesList,
53
+ rssFeedsContentsList: rssFeedsContentsList ?? this .rssFeedsContentsList,
54
+ upSpeed: upSpeed ?? this .upSpeed,
55
+ downSpeed: downSpeed ?? this .downSpeed,
56
+ notificationCancel : notificationCancel ?? this .notificationCancel );
54
57
}
55
58
56
59
@override
@@ -65,6 +68,7 @@ class HomeScreenState extends Equatable {
65
68
rssFeedsContentsList,
66
69
upSpeed,
67
70
downSpeed,
71
+ notificationCancel,
68
72
];
69
73
}
70
74
@@ -82,6 +86,7 @@ class HomeScreenInitial extends HomeScreenState {
82
86
rssFeedsContentsList: [],
83
87
upSpeed: '0 KB/s' ,
84
88
downSpeed: '0 KB/s' ,
89
+ notificationCancel: {},
85
90
);
86
91
87
92
@override
0 commit comments