refactor(architecture): centralize bloc files into dedicated folder

This commit is contained in:
anhtunz
2025-01-05 18:56:39 +07:00
parent fb12c44505
commit c2c685da86
37 changed files with 87 additions and 87 deletions

View File

@@ -0,0 +1,25 @@
import 'dart:async';
import '../feature/settings/profile/profile_model.dart';
import '../product/base/bloc/base_bloc.dart';
class SettingsBloc extends BlocBase {
// Settings Screen
final userProfile = StreamController<User>.broadcast();
StreamSink<User> get sinkUserProfile => userProfile.sink;
Stream<User> get streamUserProfile => userProfile.stream;
// Profile Screen
final isChangeProfileInfomation = StreamController<bool>.broadcast();
StreamSink<bool> get sinkIsChangeProfileInfomation =>
isChangeProfileInfomation.sink;
Stream<bool> get streamIsChangeProfileInfomation =>
isChangeProfileInfomation.stream;
@override
void dispose() {
}
}