title: How to disable ListTile?
body: <p>I need to disable the ListTile when at least one character is entered into the text field. I wrote the code, but I don’t understand how to write a function for <code>onChanged</code>. How can I do this?</p>
  <pre class="lang-dart prettyprint-override"><code>    bool _isEnableTile = true;
  
      ListTile(
       ...
        onTap: _isEnableTile
            ? () =&gt; _selectPosition(_positionsList![index].id)
            : null,
      );
  
      TextField(
        onChanged: _onChangedPosition,
      ),
  
      void _onChangedPosition(text) {}
  </code></pre>