Skip to content

Commit c6ab2ae

Browse files
committed
style: misc format
1 parent 1ca46d1 commit c6ab2ae

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

lib/app/bloc/app_bloc.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ class AppBloc extends Bloc<AppEvent, AppState> {
510510
// Get the current status for the decorator, or create a default if not present.
511511
final currentStatus =
512512
state.user!.feedDecoratorStatus[event.feedDecoratorType] ??
513-
const UserFeedDecoratorStatus(isCompleted: false);
513+
const UserFeedDecoratorStatus(isCompleted: false);
514514

515515
// Create an updated status.
516516
// It always updates the `lastShownAt` timestamp.
@@ -524,8 +524,8 @@ class AppBloc extends Bloc<AppEvent, AppState> {
524524
// Create a new map with the updated status for the specific decorator type.
525525
final newFeedDecoratorStatus =
526526
Map<FeedDecoratorType, UserFeedDecoratorStatus>.from(
527-
state.user!.feedDecoratorStatus,
528-
)..update(
527+
state.user!.feedDecoratorStatus,
528+
)..update(
529529
event.feedDecoratorType,
530530
(_) => updatedDecoratorStatus,
531531
ifAbsent: () => updatedDecoratorStatus,

lib/headlines-feed/view/headlines_feed_page.dart

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -346,18 +346,14 @@ class _HeadlinesFeedPageState extends State<HeadlinesFeedPage> {
346346
toggledItem.id,
347347
);
348348
context.read<AccountBloc>().add(
349-
AccountFollowTopicToggled(
350-
topic: toggledItem,
351-
),
349+
AccountFollowTopicToggled(topic: toggledItem),
352350
);
353351
} else if (toggledItem is Source) {
354352
isCurrentlyFollowing = followedSourceIds.contains(
355353
toggledItem.id,
356354
);
357355
context.read<AccountBloc>().add(
358-
AccountFollowSourceToggled(
359-
source: toggledItem,
360-
),
356+
AccountFollowSourceToggled(source: toggledItem),
361357
);
362358
} else {
363359
return; // Should not happen

0 commit comments

Comments
 (0)