title: What does void Function() do in Dart?
body: <p>I´m quite new to dart and wondering what this "wrapped" function exactly does?
  It´s called like a normal function with "connectUnits(userRepo)":</p>
  
  <pre><code>void Function(
      Store&lt;AppState&gt; store,
      dynamic action,
      NextDispatcher next,
    ) connectUnits(
      UnitsRepository unitsRepository,
    ) {
      return (store, action, next) {
        unitsRepository.units().listen((units) {
          store.dispatch(LoadUnitsAction(units));
          next(action);
        });
      };
    }
  </code></pre>
  
  <p>Thanks &amp; best,
  Michael</p>