state property
CubitStateEntity
get
state
Implementation
CubitStateEntity get state {
assert(states[currentState ?? initialState] != null,
'Cubit has no current state');
return states[currentState ?? initialState] ?? states.entries.first.value;
}