state follower

This commit is contained in:
Christien Rioux 2024-02-20 17:57:05 -05:00
parent f936cb069e
commit 450bdf9c7c
20 changed files with 787 additions and 128 deletions

View file

@ -1,13 +1,12 @@
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:veilid_support/veilid_support.dart';
class ActiveChatCubit extends Cubit<TypedKey?> {
ActiveChatCubit(super.initialState, this.setHasActiveChat);
import '../../tools/tools.dart';
class ActiveChatCubit extends Cubit<TypedKey?> with BlocTools {
ActiveChatCubit(super.initialState);
void setActiveChat(TypedKey? activeChatRemoteConversationRecordKey) {
setHasActiveChat(activeChatRemoteConversationRecordKey != null);
emit(activeChatRemoteConversationRecordKey);
}
void Function(bool) setHasActiveChat;
}