What is Bloc listener in Flutter?

BlocListener is a Flutter widget which takes a BlocWidgetListener and an optional bloc and invokes the listener in response to state changes in the bloc . It should be used for functionality that needs to occur once per state change such as navigation, showing a SnackBar , showing a Dialog , etc…

Read more