File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -22,37 +22,37 @@ final class DashboardState extends Equatable {
22
22
this .summary,
23
23
this .appConfig,
24
24
this .recentHeadlines = const [],
25
- this .errorMessage ,
25
+ this .exception ,
26
26
});
27
27
28
28
final DashboardStatus status;
29
29
final DashboardSummary ? summary;
30
30
final RemoteConfig ? appConfig;
31
31
final List <Headline > recentHeadlines;
32
- final String ? errorMessage ;
32
+ final HtHttpException ? exception ;
33
33
34
34
DashboardState copyWith ({
35
35
DashboardStatus ? status,
36
36
DashboardSummary ? summary,
37
37
RemoteConfig ? appConfig,
38
38
List <Headline >? recentHeadlines,
39
- String ? errorMessage ,
39
+ HtHttpException ? exception ,
40
40
}) {
41
41
return DashboardState (
42
42
status: status ?? this .status,
43
43
summary: summary ?? this .summary,
44
44
appConfig: appConfig ?? this .appConfig,
45
45
recentHeadlines: recentHeadlines ?? this .recentHeadlines,
46
- errorMessage : errorMessage ?? this .errorMessage ,
46
+ exception : exception ?? this .exception ,
47
47
);
48
48
}
49
49
50
50
@override
51
51
List <Object ?> get props => [
52
- status,
53
- summary,
54
- appConfig,
55
- recentHeadlines,
56
- errorMessage ,
57
- ];
52
+ status,
53
+ summary,
54
+ appConfig,
55
+ recentHeadlines,
56
+ exception ,
57
+ ];
58
58
}
You can’t perform that action at this time.
0 commit comments