Skip to content

Commit 7f23100

Browse files
committed
feat(entity_details): add event for toggle follow with limit check
- Add new event class EntityDetailsToggleFollowRequestedWithLimitCheck - This event will be used to toggle the "follow" status of the currently loaded entity, including a limit check
1 parent 5e0326c commit 7f23100

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/entity_details/bloc/entity_details_event.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ class EntityDetailsToggleFollowRequested extends EntityDetailsEvent {
3737
const EntityDetailsToggleFollowRequested();
3838
}
3939

40+
/// Event to toggle the "follow" status of the currently loaded entity,
41+
/// including a limit check.
42+
final class EntityDetailsToggleFollowRequestedWithLimitCheck extends EntityDetailsEvent {
43+
/// Creates a [EntityDetailsToggleFollowRequestedWithLimitCheck] event.
44+
const EntityDetailsToggleFollowRequestedWithLimitCheck();
45+
}
46+
47+
4048
/// Event to load the next page of headlines for the current entity.
4149
class EntityDetailsLoadMoreHeadlinesRequested extends EntityDetailsEvent {
4250
const EntityDetailsLoadMoreHeadlinesRequested({required this.adThemeStyle});

0 commit comments

Comments
 (0)