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

fix(graphql): fixing the dart analyzer error #1261

Closed vincenzopalazzo closed 1 year ago

vincenzopalazzo commented 1 year ago

With the new version of the compiler, we get some compiler error that makes the project unable to complete with success all the checks are done via make.

This commit fixes these bugs and make the compiler happy again.

 Error: 57 tests passed, 1 failed.
--------------------------------------------------------------------------------

$ melos exec
  └> dart run test --coverage=coverage && dart run coverage:format_coverage --lcov --in=coverage --out=coverage.lcov --packages=.dart_tool/package_config.json --report-on=lib
     └> FAILED (in 1 packages)
        └> graphql (with exit code 1)

melos run client_test_coverage
  └> melos exec -- "dart run test --coverage="coverage" && dart run coverage:format_coverage --lcov --in=coverage --out=coverage.lcov --packages=.dart_tool/package_config.json --report-on=lib"
     └> FAILED
ScriptException: The script client_test_coverage failed to execute
make: *** [Makefile:36: ci_coverage_client] Error 1

Signed-off-by: Vincenzo Palazzo vincenzopalazzodev@gmail.com