next property
A Future that waits for the next value to be added to the StateBloc
.
Implementation
Future<T?> get next {
return _controller.stream.first.then((data) => data.current);
}
A Future that waits for the next value to be added to the StateBloc
.
Future<T?> get next {
return _controller.stream.first.then((data) => data.current);
}