title: Function field return type in Dart
body: <p>In the following class I want to type the onPress method as a function which returns <code>void</code>. Is there a way to do that?</p>
  
  <pre><code>class Human {
    var onPress;
  
    Human({
      this.onPress,
    });
  }
  </code></pre>