title: How to compare the type variable in "is" operator in Dart
body: <p>I couldn't find a way to store the <code>Type</code> value in Map so that I could use it in <code>is</code> operator to check the validity of type using this map later on. Also, can <code>is</code> operator accept <code>Type</code> as a variable?</p>
  
  <p>For eg, Below is hypothetical code solving the problem but it's invalid.</p>
  
  <pre><code>Map&lt;String, Type&gt; map = {
  "sku": String,
  "price": double,
  "quantity": int,
  };
  
  dynamic value = 10;
  if(value is map["quantity"]){
    print("value is of type int and int is expected for quantity value");
  }
  </code></pre>