title: why my list model show this error : type 'List<dynamic>' is not a subtype of type 'List<String>'?
body: <p>Hello I have try to add List in my model and add data to my homepage but I have this error only when I add <code>&quot; suite=widget.todo.suite;</code> in the initstate :</p>
  <pre><code>  suite=widget.todo.suite;  =&gt; type 'List&lt;dynamic&gt;' is not a subtype of type 'List&lt;String&gt;'
  </code></pre>
  <p>If I use an other data model as &quot;id&quot; who is a string or &quot;isDone&quot; who is a bool I have no error. But my &quot;suite&quot; data have error<br />
  I don't understand.</p>
  <pre><code>-------------------homepage--------------
  
  class Add_suite extends StatefulWidget {
    final Todo todo;
    const Add_suite({Key key, @required this.todo}) : super(key: key);
  
    @override
    _Add_suiteState createState() =&gt; _Add_suiteState();
  }
  
  class _Add_suiteState extends State&lt;Add_suite&gt; {
    final _formKey = GlobalKey&lt;FormState&gt;();
  
    String title;
    String description;
    List&lt;String&gt;  suite =[&quot;&quot;];
    List&lt;String&gt; stringList = [];
  
  
    @override
    void initState() {
      super.initState();
      Firebase.initializeApp().whenComplete(() {
        print(&quot;completed&quot;);
        setState(() {});
      });
   
      suite=widget.todo.suite;
      title = widget.todo.title;
      description = widget.todo.description;
  
    }
  
  ...
   }
  
  -------------------model--------------
  
  class Todo {
    DateTime date;
    String title;
    String id;
    String description;
    List  suite;
    bool isDone;
  
    Todo({
      @required this.date,
      @required this.title,
      this.description = '',
      this.suite,
      this.id,
      this.isDone = false,
  
    });
  
    static Todo fromJson(Map&lt;String, dynamic&gt; json) =&gt; Todo(
          date: Utils.toDateTime(json['createdTime']),
          title: json['title'],
          description: json['description'],
          suite: json['suite'],
          id: json['id'],
          isDone: json['isDone'],
  
    );
  
    Map&lt;String, dynamic&gt; toJson() =&gt; {
          'date': Utils.fromDateTimeToJson(date),
          'title': title,
          'description': description,
          'suite': suite,
          'id': id,
          'isDone': isDone,
  
    };
  }
  </code></pre>
  <hr />
  <p>Edit: if I change list suite par list suite</p>
  <p>my Streambuilder return error. If I use list I have no error on streambuilder but an other error with dynamic type</p>
  <pre><code>StreamBuilder&lt;List&lt;Todo&gt;&gt;(
          stream: FirebaseFirestore.instance
              .collection('first_stories')
              .orderBy(&quot;date&quot;, descending: true)
              .snapshots()
              .transform(Utils.transformer(Todo.fromJson)),
          builder: (context, snapshot) {
            switch (snapshot.connectionState) {
              case ConnectionState.waiting:
                return Center(child: CircularProgressIndicator());
              default:
                if (snapshot.hasError) {
                  return buildText('Erreur');
                } else {
                  final todos = snapshot.data;
  
                  final provider = Provider.of&lt;TodosProvider&gt;(context);
                  provider.setTodos(todos);
  
                  return
                      TodoListWidget();
  
  
                }
            }
          },
        ),
  </code></pre>