26 lines
666 B
Dart
26 lines
666 B
Dart
import 'dart:async';
|
|
|
|
import '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() {
|
|
}
|
|
}
|