state property Null safety

TState state

retrieve current state of the cubix

Implementation

@protected
TState get state => cubix.state;
void state=(TState state)

udpate current state of the cubix

Implementation

@protected
set state(TState state) {
  if (cancelled) return;
  cubix.state = state;
}