title: How to use a Ternary Operator with multiple condition in flutter dart?
body: <p>how to use ternary if else with two or more condition using "OR" and "AND" like</p>
  
  <pre><code>    if(foo == 1 || foo == 2)
       {
        do something
        }
       {
        else do something
        } 
  </code></pre>
  
  <p>i want to use it like </p>
  
  <pre><code>  foo == 1 || foo == 2 ? doSomething : doSomething
  </code></pre>