Skip to content

Commit 2094a7d

Browse files
committed
feat(dashboard): Update Dashboard State to handle HtHttpException
1 parent ae27301 commit 2094a7d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

lib/dashboard/bloc/dashboard_state.dart

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,37 +22,37 @@ final class DashboardState extends Equatable {
2222
this.summary,
2323
this.appConfig,
2424
this.recentHeadlines = const [],
25-
this.errorMessage,
25+
this.exception,
2626
});
2727

2828
final DashboardStatus status;
2929
final DashboardSummary? summary;
3030
final RemoteConfig? appConfig;
3131
final List<Headline> recentHeadlines;
32-
final String? errorMessage;
32+
final HtHttpException? exception;
3333

3434
DashboardState copyWith({
3535
DashboardStatus? status,
3636
DashboardSummary? summary,
3737
RemoteConfig? appConfig,
3838
List<Headline>? recentHeadlines,
39-
String? errorMessage,
39+
HtHttpException? exception,
4040
}) {
4141
return DashboardState(
4242
status: status ?? this.status,
4343
summary: summary ?? this.summary,
4444
appConfig: appConfig ?? this.appConfig,
4545
recentHeadlines: recentHeadlines ?? this.recentHeadlines,
46-
errorMessage: errorMessage ?? this.errorMessage,
46+
exception: exception ?? this.exception,
4747
);
4848
}
4949

5050
@override
5151
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+
];
5858
}

0 commit comments

Comments
 (0)