refresh method

void refresh()

Broadcasts the same state

This method can be used to refresh the UI, without setting a new state.

Implementation

void refresh() {
  _stream?.add(_state);
}