send method
void
send(
- Action action, {
- void expected(
- State
Dispatches an action and optionally asserts the resulting state via
expected.
testStore.send(
CounterAction.increment,
expected: (state) => expect(state, 1),
);
Implementation
void send(Action action, {void Function(State)? expected}) {
_store.send(action);
expected?.call(_store.state);
}