title: Flutter redux thunk action parameters
body: <p>I am trying to use redux_thunk but what I really don't understand from the demo is how to send parameters to that function. I have a file actions.dart where are
  have all the actions. From my component I want to dispatch to that action some parameters so that I make a request to API. For example I want to login with username, password without saving them in state</p>
  
  <pre><code>   actions.dart    
  final ThunkAction&lt;AppState&gt; login = (Store&lt;AppState&gt; store) async {
            await new Future.delayed(
              new Duration(seconds: 3),
                  () =&gt; "Waiting complete",
            );
            store.dispatch(OtherAction(....));
          };
  
      component.dart
  class LoginBtn extends StatelessWidget {
            @override
            Widget build(BuildContext context) {
              return StoreConnector&lt;AppState, Function&gt;(
                  converter: (store) =&gt; (){
                    login(store);
                  },
                  builder: (context, callback) {
                    return RaisedButton(
                        highlightElevation: 20.0,
                        child: Text('Login', style: TextStyle(color: Colors.white)),
                        color: Color(0xFF0f7186),
                        onPressed: () {
                          callback();
                        });
                  });
            }
          }
  </code></pre>
  
  <p>Can someone help me with some quick fix or demo. Thanks!</p>
  
  <p>Something like this?</p>
  
  <pre><code>class MyAction {
    String gender;
  
    MyAction(
        {this.gender});
  
    ThunkAction&lt;AppState&gt; getDate() {
      return (Store&lt;AppState&gt; store) async {...};
    }
  }
  </code></pre>