defineState method Null safety

void defineState(
  1. St state
)

Beware: Changes the state directly. Use only for TESTS.

Implementation

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