flutter evaluate if var is integer or string : <p>i need to evaluate what type is a variable to make some switch,there are any way to evaluate a varible to get his type, like val() or something similar. i need to do something for integers and other for string.</p>

<p>i alreaedy try to using a switch, like this,</p>

<pre><code> switch (selector) {
case  int :
  print('value is a integer');
    break;
case  String:
    print('value is a String');
   break;
</code></pre>

<p>}</p>

<p>but how i do this, if switch can allow compare mixed type of vars?</p>

<p>thank you</p>
