reset method
void
reset()
Reset to initial state
Implementation
void reset() {
Transaction.run(() {
value = StructuredState<TState, TEvent>(
state: _initialState,
eventHistory: [],
);
});
}
Reset to initial state
void reset() {
Transaction.run(() {
value = StructuredState<TState, TEvent>(
state: _initialState,
eventHistory: [],
);
});
}