Skip to content

Commit

Permalink
docs(flutterbloccoreconcepts): context.bloc -> context.read (#3301)
Browse files Browse the repository at this point in the history
  • Loading branch information
felangel authored Mar 29, 2022
1 parent a6b036e commit cd57cfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/flutterbloccoreconcepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ onPressed() {
```dart
@override
Widget build(BuildContext context) {
final state = context.bloc<MyBloc>().state;
final state = context.read<MyBloc>().state;
return Text('$state');
}
```
Expand Down

0 comments on commit cd57cfe

Please sign in to comment.