Skip to content

Commit 243c695

Browse files
committed
style(content_management): update filter dialog code formatting
- Add import statement for BreakingNewsFilterStatus model - Improve code readability by formatting emit statement in _onBreakingNewsChanged method
1 parent a85d44b commit 243c695

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/content_management/widgets/filter_dialog/bloc/filter_dialog_bloc.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import 'package:flutter_news_app_web_dashboard_full_source_code/content_manageme
99
import 'package:flutter_news_app_web_dashboard_full_source_code/content_management/bloc/headlines_filter/headlines_filter_bloc.dart';
1010
import 'package:flutter_news_app_web_dashboard_full_source_code/content_management/bloc/sources_filter/sources_filter_bloc.dart';
1111
import 'package:flutter_news_app_web_dashboard_full_source_code/content_management/bloc/topics_filter/topics_filter_bloc.dart';
12+
import 'package:flutter_news_app_web_dashboard_full_source_code/content_management/models/breaking_news_filter_status.dart';
1213
import 'package:flutter_news_app_web_dashboard_full_source_code/content_management/widgets/filter_dialog/filter_dialog.dart'
1314
show FilterDialog;
1415
import 'package:flutter_news_app_web_dashboard_full_source_code/shared/constants/constants.dart';
@@ -228,7 +229,9 @@ class FilterDialogBloc extends Bloc<FilterDialogEvent, FilterDialogState> {
228229
FilterDialogBreakingNewsChanged event,
229230
Emitter<FilterDialogState> emit,
230231
) {
231-
emit(state.copyWith(isBreaking: event.isBreaking));
232+
emit(
233+
state.copyWith(isBreaking: event.isBreaking),
234+
);
232235
}
233236

234237
/// Updates the temporary selected source types for sources.

0 commit comments

Comments
 (0)