How to pass parameters to action in Flutter
问题 I have this action Future<void> signUpAction(Store<AppState> store) async { try { // ... } catch (e) { // .. } } And I dispatch it like this store.dispatch(signUpAction); Now, if I want to pass two paramters, how would I do that? Since there is already one parameter there. I tried this Future<void> signUpAction(Store<AppState> store, email, password) async { try { // ... } catch (e) { // .. } } but then on dispatching, if I do store.dispatch(signUpAction("some@email.com", "somEPa55word!"));