i'm trying to pull new data from firebase cloud firestore and rebuild the widget on onPress of floating action button. i'm not sure how to rebuild the whole widget. Tried to call getList from the onPressed and setState() but still not rebulding widget evening nameList was updated.

```
class MyList extends StatefulWidget {
  static const String id = 'test';
  @override
  _MyListState createState() => _MyListState();
}

class _MyListState extends State<MyList> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text('TEST'),),
      body: MainList(),
      floatingActionButton: FloatingActionButton(
          child: Icon(Icons.refresh),
          backgroundColor: Colors.teal,
          onPressed: () {
          }),
    );
  }
}

class MainList extends StatefulWidget {
  @override
  _MainListState createState() => _MainListState();
}

class _MainListState extends State<MainList> {
  List<Test> nameList = [];
  @override
  void initState() {
    super.initState();
    getList();
  }

  getList() async {
    final _name = await 
Firestore.instance.collection('test').getDocuments();
    nameList.clear();
    for (var name in _name.documents) {
      Test addName = new Test(
        name.data['name'],
      );
      nameList.add(addName);
      setState(() {});
    }
  }

  @override
  Widget build(BuildContext context) {
    return ListView.builder(
        itemCount: nameList.length,
        itemBuilder: (BuildContext context, int index) {
          return Container(
            child: Text(nameList[index].name),
          );
        });
  }
}

```