Skip to content

The method 'bloc' isn't defined for the type 'BuildContext' #2

@saqlainjaved512

Description

@saqlainjaved512

final CounterBloc counterBloc = context.bloc<CounterBloc>();
Here is the code where am facing the error
and the error says
"error: The method 'bloc' isn't defined for the type 'BuildContext'."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions