current property

Future<T?> get current

A Future that waits for a value to be added to the StateBloc. Completes with the current value if the StateBloc already has a value.

Implementation

Future<T?> get current {
  return stream.first;
}