title: Flutter how to use Lists to create similar widgets white implicit-case and implicity-dynamic set to false
body: <p>I'm trying to be better about typing in flutter/dart. To force this, I made an analysis_options.yaml with:</p>
  
  <pre><code> analyzer:
    strong-mode:
      implicit-casts: false
      implicit-dynamic: false
  </code></pre>
  
  <p>and that works great, but I have a hard time with code like the following:</p>
  
  <pre><code>Widget build(BuildContext context) {
  
      return Column(
        children: [...widgetList()]);
    }
  
    widgetList(){
       List&lt;Map&lt;String,dynamic&gt;&gt; defineWidgets = [
        {"text":"beer", "color": Colors.blue}, // &lt;-- Missing type arguments for map literal. Try adding an explicit type like 'dynamic' or enable implicit dynamic in your analysis options.
        {"text":"wine", "color": Colors.red},
      ];
      List&lt;Widget&gt; finalWidgets =[];
      for(int i = 0; i &lt; defineWidgets.length; i++ ){
        finalWidgets.add(
          Expanded(child:Container(
            child:Text(defineWidgets[i]['text']), // &lt;-- the argument type 'dynamic' can't be assigned to the parameter type 'String'
            color:defineWidgets[i]['color']
          ))
        );
      }
      return finalWidgets;
    }
  </code></pre>
  
  <p>I tried using cast() to no avail.
  Is there a way to do this of function without setting implicit-casts and implicit-dynamic to true? </p>