felangel / bloc

A predictable state management library that helps implement the BLoC design pattern
https://bloclibrary.dev
MIT License
11.56k stars 3.37k forks source link

docs: BlocListener example loss a "," #4101

Closed ASE55471 closed 4 months ago

ASE55471 commented 4 months ago

Description

The third example in BlocListener class, It doesn't effect the readability for sure, But just remind.

BlocListener<BlocA, BlocAState>(
  listenWhen: (previous, current) {
    // return true/false to determine whether or not
    // to invoke listener with state
  },
  listener: (context, state) {
    // do stuff here based on BlocA's state
  } // loss a "," here
  child: Container(),
)
tenhobi commented 4 months ago

Hi @ASE55471, nice catch. Do you want to create a PR for that? 🙂