next property

Future<T?> next

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);
}