title: Method as parameter for own annotation?
body: <p>I have this annotation:</p>
  
  <pre><code>class Handler {
    final Function onListen;
    final Function onPause;
    final Function onResume;
    final Function onCancel;
  
    const Handler({this.onListen, this.onPause, this.onResume, this.onCancel});
  }
  </code></pre>
  
  <p>and use it like this:</p>
  
  <pre><code>abstract class Test implements ViewModel&lt;TestController&gt; {
  
    static onListen() {
      print('onListen');
    }
  
    @Handler(onListen: onListen)
    Stream&lt;String&gt; get messages;
  
    factory Test() = _$Test;
    Test._();
  }
  </code></pre>
  
  <p>This works so far but is there a way to use a non <code>static</code> method as parameter for my annotation?</p>
  
  <p>When I remove the <code>static</code> I get this error: Arguments of a constant creation must be constant expressions.</p>