bloc_library example contains direct dependency between FilteredTodosBloc and TodosBloc. It is directly not recommended in BLoC library documentation. Please fix it.
|
FilteredTodosBloc({required this.todosBloc}) |
|
: super( |
|
todosBloc.state is TodosLoaded |
|
? FilteredTodosLoaded( |
|
(todosBloc.state as TodosLoaded).todos, |
|
VisibilityFilter.all, |
|
) |
|
: FilteredTodosLoading(), |
|
) { |
|
todosSubscription = todosBloc.stream.listen((state) { |
|
if (state is TodosLoaded) { |
|
add(UpdateTodos(state.todos)); |
|
} |
|
}); |
bloc_libraryexample contains direct dependency betweenFilteredTodosBlocandTodosBloc. It is directly not recommended in BLoC library documentation. Please fix it.flutter_architecture_samples/bloc_library/lib/blocs/filtered_todos/filtered_todos_bloc.dart
Lines 12 to 25 in d898d13