title: The method 'bloc' isn't defined for the type 'BuildContext'
body: <pre><code> Widget build(BuildContext context) {
      final appBar = AppBar(
        title: Text(
          &quot;Romantic Comedy&quot;,
        ),
        actions: [
          IconButton(
            icon: Icon(Icons.search),
            onPressed: () {
              showSearch(
                  context: context,
                  delegate: MaterialSearch(_pagingController.itemList));
            },
          ),
        ],
      );
  
      return Scaffold(
          backgroundColor: Colors.black,
          appBar: appBar,
          body: BlocConsumer&lt;MovieBloc, MovieState&gt;(
              listener: (context, movieState) {
  
              },
              builder: (context, movieState) {
                if (movieState is MovieSuccessState) {
                  movieBloc.movies.addAll(movieState.movies);
                }
                return GridView.builder(
                    controller: _scrollController
                      ..addListener(() {
                        if (_scrollController.offset ==
                            _scrollController.position.maxScrollExtent) {
                          context.bloc&lt;MovieBloc&gt;()
                            ..isFetching = true
                            ..add(Fetch());
                        }
                      }),
                    padding: EdgeInsets.only(left: 12.0, right: 12.0),
                    gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
                        crossAxisCount: 3),
                    itemBuilder: (context, index) =&gt; MovieTile(_movies[index]));
              }));
    }
  </code></pre>