Open temcewen opened 5 months ago
From what I remember this error appears in dev mode in flutter, when hot reload is used. In production (release mode) this will not happen
I would love to see your PR merged! Even if this issue doesn't affect production apps, not being able to hot-reload really hampers development.
Screenshot of error message with location it's occurring at:![Untitled](https://github.com/gql-dart/gql/assets/76079324/9e8625ae-733b-4a59-9187-f5f45a74f8be)
The method signature expects a type of
FutureOr<Map<String, dynamic>>?
but the default function returns Map<String, dynamic>?. I believe the issue is that the FutureOr type is nullable, not its subtype.Here is a screenshot of the default function:
I made a fix for it myself passing in a function that works as expected. I'll go ahead and make a pull request for it if that works.