skip to Main Content

Flutter – How to manage an enum-typed BLoC event?

I am using these packages for the following codes: flutter_bloc, oxidized, freezed, and get_it tmdb_bloc.dart typedef TmdbState = PageState<List<MovieEntity>>; class TmdbBloc extends Bloc<TmdbEvent, TmdbState> { final TmdbPublicUseCases useCases; TmdbBloc(this.useCases) : super(const PageState.initial()) { on<TmdbEvent>((event, emit) async { event.map( getPopularMovies: (_)…

VIEW QUESTION

GraphQL and Bloc in Flutter

So im trying to implement graphql in flutter, using bloc too. I think i already did all the necessary part, but when i try to hit the graphql, it return response like this HttpLinkParserException (ResponseFormatException(originalException: FormatException: Unexpected character (at character…

VIEW QUESTION
Back To Top
Search