You can do it similarly to that . But instead of passing String like on the example, you pass a cubit/bloc, like :
Navigator.of(context).pushNamed(Routes.myPage, arguments: {'bloc' : context.read<MyBloc>()});