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