How to set a listener inside initState() in Flutter
So I want to write a BlocListener inside initState(), which functions to provide logic on whether a code should be executed or not based on the current state, like this: @override void initState() { super.initState(); BlocListener<InternetCubit, InternetState>( listener: (context, stateInt)…