Skip to content

Commit 78d4925

Browse files
committed
feat(entity_details): require ad theme style for loading more headlines
- Add adThemeStyle parameter to EntityDetailsLoadMoreHeadlinesRequested event - Update props to include adThemeStyle - Improve documentation for ad theme style requirement
1 parent f3ae38e commit 78d4925

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/entity_details/bloc/entity_details_event.dart

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,13 @@ class EntityDetailsToggleFollowRequested extends EntityDetailsEvent {
4646

4747
/// Event to load the next page of headlines for the current entity.
4848
class EntityDetailsLoadMoreHeadlinesRequested extends EntityDetailsEvent {
49-
const EntityDetailsLoadMoreHeadlinesRequested();
49+
const EntityDetailsLoadMoreHeadlinesRequested({required this.adThemeStyle});
50+
51+
/// The current ad theme style, required for ad injection.
52+
final AdThemeStyle adThemeStyle;
53+
54+
@override
55+
List<Object> get props => [adThemeStyle];
5056
}
5157

5258
/// Internal event to notify the BLoC that the user's content preferences

0 commit comments

Comments
 (0)