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…

Sizin İçin Seçtik  What is navigatorKey?

Leave a Reply

Your email address will not be published. Required fields are marked *