veilidchat/lib/veilid_processor/cubit/connection_state_cubit.dart
2024-02-26 23:34:17 -05:00

14 lines
475 B
Dart

import 'package:bloc_tools/bloc_tools.dart';
import '../models/models.dart';
import '../repository/processor_repository.dart';
export '../models/processor_connection_state.dart';
class ConnectionStateCubit
extends StreamWrapperCubit<ProcessorConnectionState> {
ConnectionStateCubit(ProcessorRepository processorRepository)
: super(processorRepository.streamProcessorConnectionState(),
defaultState: processorRepository.processorConnectionState);
}