Closed PatrickWulfe closed 1 year ago
After cloning the repo and adding the following to the analysis_options.yaml fixed it for me, though I doubt this is an optimal solution.
analyzer:
enable-experiment:
- records
Thanks for the report. I think you mean that there is an issue with record types in a return value. I can't be sure without seeing the declaration of ScryfallRepository
. If this is the case, this is a duplicate of https://github.com/dart-lang/mockito/issues/636
It is in fact a duplicate issue, didn't catch it when I searched. Thanks!
This is fixed in master branch but not released yet.
I decided to try and move away from using Dartz's Either class to use Dart 3's new patterns feature, but when I try to generate mocks, the generated code doesn't import any libraries for classes that appear in patterns, or if the library is imported, it won't prepend it to anything in the pattern.
Here is my test file:
Here is the generated file: