zino-hofmann / graphql-flutter

A GraphQL client for Flutter, bringing all the features from a modern GraphQL client to one easy to use package.
https://zino-hofmann.github.io/graphql-flutter
MIT License
3.25k stars 620 forks source link

ws: abstract the implementation with a patter to avoid the chain of if else #1123

Open vincenzopalazzo opened 2 years ago

vincenzopalazzo commented 2 years ago

Having a chain of if-else makes the code harder to write and we can refactor as suggested inside the PR https://github.com/zino-hofmann/graphql-flutter/pull/1060/files#r862642183

vincenzopalazzo commented 2 years ago

this can take a little bit because I'm building the integration architecture, if you want see the status it is available here https://github.com/vincenzopalazzo/keep-safe-graphql