Closed elkSal closed 3 weeks ago
Hi @elkSal đź‘‹ Can you please share a link to a minimal reproduction sample? It would be much easier to help if I can run the sample locally and reproduce the issue, thanks!
Closing for now since this issue is quite old and there isn't a minimal reproduction sample. If this is still a problem please file a new issue with a link to a reproduction sample, thanks!
Isolates in dart copy the objects of the arguments passed as mentioned here.
I have a repository class that has a source and a mapper. I would like to verify that the mapper function is called but the verify doesn't work as the mapper object (passed as an argument of the isolate) is copied inside the isolate, and therefore is not the same object.
Repository code:
Testing code
The
expect
works fine, only theverify
methods trigger an error as they are never called.