veilidchat/lib/chat/cubits/active_chat_cubit.dart
Christien Rioux 9219e1307e more refactor
2024-02-13 22:03:26 -05:00

14 lines
452 B
Dart

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