title: how can I auto refresh listView in Flutter?
body: <p>I implemented listView to Display the data, which I save data into <code>Sqflite Database</code>, fetched from database and display into listview. After saving data I <code>pop</code>  form fields page to listView page but my ListView is not updated, I need to move back and then open listView to see new Record. </p>
  
  <pre><code>  List&lt;SubjectModel&gt; list;
    int count = 0;
    SubjectModel subjectModel;
  
    @override
    Widget build(BuildContext context) {
      if (list == null) {
        list = List&lt;SubjectModel&gt;();
        updateListView();
      }
      return Scaffold(
        appBar: AppBar(
          title: Text('Subject'),
        ),
        floatingActionButton: FloatingActionButton(
            backgroundColor: Colors.purple,
            child: Icon(Icons.add),
            onPressed: () {
              Navigator.push(context,
                  new MaterialPageRoute&lt;void&gt;(builder: (context) {
                    return new CreateTask(SubjectModel('', '', '', '', '', '', ''),'Add Subject');
                  }));
            }),
        body: getSubListView()
      );
    }
  
    ListView getSubListView(){
      return ListView.builder(
          itemCount: count,
          itemBuilder: (BuildContext context, int position){
            return Card(
              color: Colors.white,
              elevation: 2.0,
              child: Column(
                children: &lt;Widget&gt;[
                  ListTile(
                    title: Text(this.list[position].subject),
                    onLongPress: () =&gt; navigateToDetail(this.list[position],'Edit Subject'),
                  )
                ],
              ),
            );
          }
      );
    }
  }
  </code></pre>