createSnapshot method
Implementation
@override
CStateMachineSnapshot<T> createSnapshot() {
final snapshot = CStateMachineSnapshot<T>(namedId);
snapshot._states = .from(_states);
snapshot._transitions = .from(_transitions);
snapshot._current = _current;
snapshot._timeInState = _timeInState;
snapshot._started = _started;
snapshot._entered = _entered;
return snapshot;
}