title: List != List<int> != List<String> != List<dynamic> How do i make sure if type == list returns true in dart
body: <pre><code>
  
  listType(example) {
    var x = example.runtimeType;
    if (x == List) { 
      return true;
    } else {
      return false;
    }
  }
  
  print(listType([1, 2, 3, 4]));
  
  </code></pre>
  <p>You can swap swap x==List with x==List&lt; int&gt; and see the difference!!!</p>
  <p>How do i make it so that runtimeType always returns true as long as the return type is a list?</p>