Is it ok to return an variable from a cubit state function? – Flutter
Is it ok to return a value from a Cubit state function or is it better to emit a state and use BlocListener? Future<Game?> addGame(List<String> players, int numOfRounds) async { try { Game game = await repository.addGame(DateTime.now(), players, numOfRounds); return…