mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-07-24 23:15:35 -04:00
state follower
This commit is contained in:
parent
f936cb069e
commit
450bdf9c7c
20 changed files with 787 additions and 128 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue