title: Failed assertion line 5120 pos 12: 'child = _child' is not true
body: <p>I am trying to create a listview with API data using bloc pattern following is the error:</p>
  
  <blockquote>
    <p>'package:flutter/src/widgets/framework.dart': Failed assertion: line 5120 pos 12: 'child == _child': is not true.</p>
  </blockquote>
  
  <p>My list file:</p>
  
  <pre><code>import 'package:Instant_Feedback/Dashboard/PeopleList/bloc/bloc.dart';
  import 'package:Instant_Feedback/People/strongConnection_model.dart';
  import 'package:flutter/material.dart';
  import 'package:flutter_bloc/flutter_bloc.dart';
  
  class PeopleListing extends StatefulWidget {
    @override
    State&lt;StatefulWidget&gt; createState() =&gt; _PeopleListingState();
  }
  class _PeopleListingState extends State&lt;PeopleListing&gt; {
    PeopleListBloc peopleBloc;
    @override
    void initState() {
      super.initState();
      peopleBloc = BlocProvider.of&lt;PeopleListBloc&gt;(context);
      peopleBloc.dispatch(DisplayPeopleList());
    }
  
    @override
    Widget build(BuildContext context) {
      return BlocBuilder(
        bloc: peopleBloc,
        builder: (context, state){
          if (state is PeopleUninitializedState) {
            print("PeopleUninitializedState");
          } else if (state is PeopleFetchingState) {
            print("PeopleFetchingState");
          } else if (state is PeopleFetchingState) {
            print("PeopleFetchingState");
          } else {
            final stateAsPeopleFetchedState = state as PeopleFetchedState;
            final players = stateAsPeopleFetchedState.people;
            return buildPeopleList(players);
          }
        },
      );
    }
  
  Widget buildPeopleList(List&lt;StrongConnection_model&gt; people) {
      print(people.length);
      return Container(
        child: Text('sdf sdkfh kdj'),
      );
    }
  }
  </code></pre>
  
  <p>Error:
  <a href="https://i.stack.imgur.com/mMnwr.png" rel="noreferrer"><img src="https://i.stack.imgur.com/mMnwr.png" alt="enter image description here"></a></p>