Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Co-authored-by: Piotr Rogulski <[email protected]>
  • Loading branch information
KamilSztandur and PiotrRogulski authored Oct 3, 2023
1 parent bcba849 commit 6b487ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ class MyCubit extends Cubit<MyState> with BlocPresentationMixin {
}
```

then put inside your `HookWidget`'s `build` method:
You can listen to its events via the `useOnStreamChange` hook:

```dart
useOnStreamChange(
bloc.presentation,
Expand Down

0 comments on commit 6b487ee

Please sign in to comment.