copy method
Copy particular properties from another StateX
Implementation
@mustCallSuper
void copy([StateX? state]) {
//
if (state == null) {
return;
}
// Copy over certain properties
_recException = state._recException;
_ranAsync = state._ranAsync;
}