title: How to solve "The property 'length' can't be unconditionally accessed because the receiver can be 'null'"
body: <p>I have added conditions too for the reciever to not be null but the error persists. These are 2 errors which I am unable to solve.Please help! I am making &quot;Notes&quot; application where I am storing values in sqflite db.</p>
  <pre><code>        body: FutureBuilder(
            future: getNotes(),
            builder: (context, noteData) {
              switch (noteData.connectionState) {
                case ConnectionState.waiting:
                  {
                    return Center(child: CircularProgressIndicator());
                  }
                case ConnectionState.done:
                  {
                    if (noteData.data == null) {
                      return Center(
                        child: Text(&quot;You don't have any notes yet, create one!&quot;),
                      );
                    } else {
                      return Padding(
                        padding: EdgeInsets.all(8.0),
                        child: ListView.builder(
                           itemCount: noteData.data.length,   //Error
                          itemBuilder: (context, index) {
                            String title = noteData.data[index]['title'];// Error-The method '[]' can't be 
                                                                    //unconditionally invoked because the receiver //can be 'null'.
                            String body = noteData.data[index]['body'];
                            String creation_date =
                                noteData.data[index]['creation_date'];
                            int id = noteData.data[index]['id'];
  
               
  </code></pre>