defineState method

void defineState(
  1. St state
)

Beware: Changes the state directly. Use only for TESTS. This will not notify the listeners nor complete wait conditions.

Implementation

void defineState(St state) {
  _state = state;
  _stateTimestamp = DateTime.now().toUtc();
}