title: How to handle keyboard actions or add functions in keyboard TextInputAction in Flutter/Dart?
body: <p>I have simple TextField below. I wanted to call my search function when I pressed the TextInputAction button of the SofInput Keyboard. </p>
  
  <pre><code>TextField(
      keyboardType: TextInputType.phone,
      textInputAction: TextInputAction.search,
      decoration: InputDecoration(hintText: 'Enter Number'),
  ),
  
  // Example only
  void myCustomFunction() =&gt; SearchNumber();
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/DIar2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DIar2.png" alt="enter image description here"></a></p>