title: How to store a List of strings in a TextFormField
body: <p><strong>How to properly assign a List to a textformfield OnSaved</strong></p>
  <pre><code>class _ProductsState extends State&lt;Products&gt; {
    List&lt;String&gt;? products;
    @override
    Widget build(BuildContext context) {
      return Scaffold(
        body:Container(
          height: 100,
          width: 80,
          child: TextFormField(
            onSaved: (input){
              products=input; // A value of type 'String?' can't be assigned to a variable 
                                                         // of type 'List&lt;String&gt;?'
            },
          ),
  )
  );
  }
  }
  </code></pre>
  <p>I want whatever i type in the textfield gets stored in the List of products like this [0]['Whatever i type'],[1]['sdsdw']</p>