title: Flutter: The instance member 'data' can't be accessed in an initializer
body: <pre><code> class _ShowformState extends State&lt;Showform&gt; {
    List data;
  
    var duplicateItems = List&lt;String&gt;.from(data); //&lt;---- The instance member 'data' can't be accessed in 
    //an  initializer.
  
    var items = List&lt;String&gt;();
  
  @override
  Widget build(BuildContext context) {
  return Scaffold(
      appBar: AppBar(
        elevation: 0.0,
        title:
            Text('Maintenance Information', style: TextStyle(fontSize: 20)),
      ),
  </code></pre>
  <p>I would like to convert List&lt; dynamic&gt; to List&lt; string&gt; but I can't access data.</p>