StreamCubit<T> constructor
StreamCubit<T> (
- T initialValue,
- Stream<
T> stream
Implementation
StreamCubit(T initialValue, Stream<T> stream) : super(initialValue) {
_sub = stream.listen((event) => emit(event));
}