title: Flutter: TextField onChange function's conditional
body: <pre><code>onChanged: (v) async {
    print(EmailValidator.validate(v));
    EmailValidator.validate(v)
        ? () async {
          print('email tureeee');
          }
        : () async {
            print('email not trueee');
          };
  },
  </code></pre>
  <p>I have this conditional functions inside the <code>onChange()</code> of the TextField widget. <code>print(EmailValidator.validate(v));</code> seems to work. However, the conditional function does not execute when condition has been met.</p>
  <p>How can I make this work?</p>