Flutter – What is the recommended way to access a non-global bloc/cubit in a named route
currently, I have as an example a cubit that is injected with BlocProvider in ScreenA. class ScreenA extends StatelessWidget { const ScreenA({super.key}); @override Widget build(BuildContext context) { return BlocProvider<MyCubit>( create: (context) => MyCubit(), child: ... ); } } For the…